Get the input box value from applet & transfer it to javaScript
Darren Alexandria
Ranch Hand
Joined: Aug 17, 2007
Posts: 185
posted
0
Good day!
I have an applet which is currently embedded in a JSP page. What I am trying to do is to access or get the value in the input box using javaScript.
Here is my applet tag
Here's what I used in javaScript:
But all I get is an undefined value.
[ UD: added linebreaks to preserve formatting ] [ March 13, 2008: Message edited by: Ulf Dittmer ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
The applet tag -which is what getElementById returns- does not have a "value" attribute. If you want to access data in the applet, write a public method that returns it, and call it like document.getElementById('appletbarcode').getValue().