Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript function call from java applet

Status
Not open for further replies.

Rodie

Programmer
Jun 27, 2004
132
FR
Hi !

I have a Java applet and a HTML/Javascript page.
I would like to call a Javascript function from my Java applet.

I tried the different ways to do that I found on the Web, but it does not work !

For example, to call the Modif(name) function in Javascript :
Code:
JSObject win = JSObject.getWindow(this);
String Arguments[] = {"Redford"};
win.call("Modif", Arguments);

Is there someone how know something about it ?
Thanks in advance !!
 
Sorry, it finally works ...

Actually I declared all my Javascript function inside the <BODY> tag, which is an error !!

The error has no relation with the applet. Sorry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top