views:

91

answers:

2

Hi, I'm kind of stuck because I can get JavaScript to send a message to a Java applet. I can get it to work the other way round. Does anyone know a proper way to do this that works everywhere?

+2  A: 

For calling Java from JavaScript, you can have public methods in your applet that you call from JavaScript. See this post for more information.

For calling JavaScript from Java, you use JSObject.

Vinay Sajip
+1  A: 

You may need to add <PARAM NAME="scriptable" VALUE="true"> to the OBJECT or APPLET tag.

Andrew Duffy
Wooh! It worked. Thanks :D
kennyisaheadbanger