HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

Newbie need help
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> Javascript
View previous topic :: View next topic  
Author Message
hud934



Joined: 17 Nov 2008
Posts: 3

Posted: Mon Nov 17, 2008 2:14 pm     Newbie need help  

I have a scale that I want to populate values to the fields on the left by a value of 1. I would like for the values to float over. Basicly id(level2) should be "1" greater than id(level1);id(level5)= level3 + 1. I wolud like for them to automaticly populate after entering the value "level1" or by clicking to enter the next value (level3) Any suggestions?

<td colspan=2> <form name="Custom Glucose Scale">
<table cellpadding="10">
<tr><td align=left> < <input type=text id="level1" size=1></td><td>0 Units</td></tr>
<tr> <td align=right><input type=text id="level2" value=""size=1> to <input type=text id="level3" size=1> (mg/dl)</td>
<td><input type=text name="units1" size=1>Units</td>
</tr>
<tr> <td align=right><input type=text id="level5" size=1> to <input type=text id="level6" size=1> (mg/dl)</td>
<td><input type=text id="units2" size=1>Units</td>
</tr>
<tr> <td align=right><input type=text id="level7" size=1> to <input type=text id="level8" size=1> (mg/dl)</td>
<td><input type=text id="units3" size=1>Units</td>
</tr>
<tr> <td align=right><input type=text id="level9" size=1> to <input type=text id="level10" size=1> (mg/dl)</td>
<td><input type=text id="units4" size=1>Units</td>
</tr>
<tr> <td align=right><input type=text id="level11" size=1> to <input type=text id="level12" size=1> (mg/dl)</td>
<td><input type=text id="units5" size=1>Units</td>
</tr>
<tr> <td align=right><input type=text id="level13" size=1> to <input type=text id="level14" size=1> (mg/dl)</td>
<td><input type=text id="units6" size=1>Units</td>
</tr>
<tr><td align=left> > <input type=text id="level15" size=1></td><td>Notify MD</td></tr>
</td>

</table>
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1409
Location: Biloxi, MS

Posted: Mon Nov 17, 2008 3:24 pm      

I didn't see any JavaScript in the code. Are you expecting someone to write that for you? Or is it on your page that is, hopefully, online so others can take a look at what you do have?
hud934



Joined: 17 Nov 2008
Posts: 3

Posted: Tue Nov 18, 2008 4:54 am      

I don't have any javascript written. But I don't know where to start. I don't want anyone to write it for me. I just need a push in the right direction.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1409
Location: Biloxi, MS

Posted: Thu Nov 27, 2008 10:28 am      

Might take a read of "Online calculator tutorial".

Or look at the source code on how this one was done: Blood Sugar Conversion
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> Javascript
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group