A
Ayrton
I've make a simple applet and I must call javascript function.
With nescape and firefox I've to much problem that I don't understand.
Must I do some browser's settings ?
import netscape.javascript.*;
import java.applet.*;
public class ProvaReflect extends Applet {
private JSObject window = null;
public void init(){}
public void start(){
JSObject win = (JSObject)JSObject.getWindow(this);
}
}
Error:
Java Plug-in 1.5.0_04
......
netscape.javascript.JSException
at netscape.javascript.JSObject.getWindow(Unknown Source)
at ProvaReflect.start(ProvaReflect.java:15)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
With nescape and firefox I've to much problem that I don't understand.
Must I do some browser's settings ?
import netscape.javascript.*;
import java.applet.*;
public class ProvaReflect extends Applet {
private JSObject window = null;
public void init(){}
public void start(){
JSObject win = (JSObject)JSObject.getWindow(this);
}
}
Error:
Java Plug-in 1.5.0_04
......
netscape.javascript.JSException
at netscape.javascript.JSObject.getWindow(Unknown Source)
at ProvaReflect.start(ProvaReflect.java:15)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)