Connect with Expertise | Find Experts, Get Answers, Share Insights

Javascript -> Applet communication

decoy@system102.com
 
Posts: n/a
#1: Dec 28 '05
Hi all,
Does anyone know whether it's possible for Java (signed) applets to
call javascript functions and for javascript to call public methods in
the applet code. I know that the latter is possible, but how do you
send parameters to Java (since the types are different). E.g I have a
public method on the applet called setValue(String val) and I want to
call it from within my javascript.

I'd rather do it without 3rd party libraries ( for free :) if possible.

Many thanks for the help.

Stu.


Andrew Thompson
 
Posts: n/a
#2: Dec 28 '05

re: Javascript -> Applet communication


decoy@system102.com wrote:
[color=blue]
> ...E.g I have a
> public method on the applet called setValue(String val) and I want to
> call it from within my javascript.[/color]

Sure. Check Real's HowTo* for lots of examples of applet/JS
and JS/applet interaction.

* <http://www.rgagnon.com/howto.html>

--
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
decoy@system102.com
 
Posts: n/a
#3: Dec 28 '05

re: Javascript -> Applet communication


Thanks for the link, problem solved!

Closed Thread