View Full Version : Call Javascript function from Java applet

name _F1
12-09-2007, 12:22 PM
Is it possible to call a Javascript function from a Java applet in a cross-browser fashion? I know that Javascript can call Java methods, but can it be done in the reverse? The only other solution I can think of, which is far from ideal, is querying the Java applet at intervals and return a Boolean indicating whether to perform the function.

12-09-2007, 09:06 PM
There is an article on just how to do this here:

link (http://www.rgagnon.com/javadetails/java-0172.html)

Sun talks about this a little as well here:

Sun Link (http://java.sun.com/products/plugin/1.3/docs/jsobject.html)