Okay Otto, this method works great with text boxes but I am having problems getting it to work with a combo box. I keep getting a null value result. However, when I submit the form using the post method it sends the correct data to the server. Can you help?
Okay MIS .<br>
The applet is the same, and here is the new html with a combo:<br>
**********<br>
<FORM onSubmit="return false"><br>
Please, select a name: <br>
<SELECT NAME="Combo"><br>
<OPTION SELECTED>MIS<br>
<OPTION>DigitalOx<br>
<OPTION>Otto</SELECT><br>
<INPUT TYPE="submit" value="Pass data" onClick="<br>
document.FD.writeName(Combo[Combo.selectedIndex].text);"><br>
</FORM><br>
<HR><br>
<APPLET CODE=FormDataToApplet.class NAME=FD height=100 width=200><br>
</APPLET><br>
**********<br>
I try this with Netscape Communicator 4.5, and it works well.<br>
I have not got IE, but I hope that this code will good with, too.<br>
Good luck. Bye, Otto.<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.