Entry
After an applet loads, is there a way for it to send info back to the web page (client or server)?
Jan 24th, 2002 07:36
James Massey, Jean-Bernard Valentaten, Andrew,
Depending on which browser is used there are way's.
When using IE5.x (maybe IE4.x I haven't tried yet) or NN4.x you can use
a technique called liveconnect. Your applet can then call js functions
to communicate with the page. On the other hand, js can call methods of
the applet to communicate with the applet.
If NN6.x or a Java-Plugin is used, the only way that can be used is by
having a second page that is reloaded with query-strings and then sends
those queries via js to the main page. This is not the easiest solution
however (I've never used it, since it's a real pain in the a..). The
problem is, that if the user closes the second window (you necer know
what a user does *g*), you loose the possibility to communicate.
If you decide on using liveconnect, send me an e-mail, I'll show you how
to make your applet liveconnectable and how to script all of that.
But you need to keep in mind, that it's a whole lot of work you need to
do then.
HTH,
Jean
The Netscape6.2 release notes say that liveconnect is now enabled in to
allow javascript->applet communication:
http://www.planetmirror.com/pub/netscape/netscape6/english/6.2/62.html#j
ava
James