Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-10-2011, 02:01 PM   PM User | #1
jsmiracles
New to the CF scene

 
Join Date: Sep 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
jsmiracles is an unknown quantity at this point
function invoke

hi good people,

need some clues with the code just dont know where to start:

/*
* The function displays text in the document's gameForm
* text input fields.
*
* The function takes 4 arguments:
* hits is displayed in the hitsTextBox.
* The characters in hits are separated by spaces.
*
* misses is displayed in the missesTextBox.
* Any space characters in misses
* are substituted with the string '(space)'.
*
* lives is displayed in the livesTextBox.
*
* term is displayed in the termTextBox.
*
* definition is displayed in the definitionsTextArea.
*
* The function has no return value.
*/
function updateGameForm(hits, misses, lives, term, definition)

{
jsmiracles is offline   Reply With Quote
Old 09-10-2011, 04:27 PM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
Code:
js:
document.getElementById("hitstextbox").value=hits;

html:
<input type="text" id="hitstextbox">
etc
xelawho is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:20 PM.


Advertisement
Log in to turn off these ads.