P
Paul Richards
Hi,
I'm trying to figure out a way of getting my Java applet to update the
text in an html text box which is on the same html page as the applet. I
am following the instructions for accessing the DOM here:
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/java_js.html#common_dom
I'm having problems even getting the sample code to work correctly.
(Everything compiles, just crappy NullPointerExceptions from methods
which should be returning fine). This happens with Netscape 6/7 and
Mozilla 1.2. Netscape 4 falls over way before this and I do not have
access to IE.
Does anyone know how I can do this? Or perhaps there are some tutorials
somebody knows about..
My other option is to have some Javascript on the html page periodically
poll the Applet to check if it wants to update the text in the text box.
This solution is ofc a bit kak.
I'm trying to figure out a way of getting my Java applet to update the
text in an html text box which is on the same html page as the applet. I
am following the instructions for accessing the DOM here:
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/java_js.html#common_dom
I'm having problems even getting the sample code to work correctly.
(Everything compiles, just crappy NullPointerExceptions from methods
which should be returning fine). This happens with Netscape 6/7 and
Mozilla 1.2. Netscape 4 falls over way before this and I do not have
access to IE.
Does anyone know how I can do this? Or perhaps there are some tutorials
somebody knows about..
My other option is to have some Javascript on the html page periodically
poll the Applet to check if it wants to update the text in the text box.
This solution is ofc a bit kak.