364,083 Members | 5675 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

Javascript -> Applet communication

decoy@system102.com
P: n/a
decoy@system102.com
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.

Dec 28 '05 #1
Share this Question
Share on Google+
2 Replies


Andrew Thompson
P: n/a
Andrew Thompson
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
Dec 28 '05 #2

decoy@system102.com
P: n/a
decoy@system102.com
Thanks for the link, problem solved!

Dec 28 '05 #3

Post your reply

Help answer this question



Didn't find the answer to your JavaScript / Ajax / DHTML question?

You can also browse similar questions: JavaScript / Ajax / DHTML