Hi All,
I have a
applet and i am trying to communicate with the javascript thr applet.
here is the code :
import netscape.javascript.*;
.
.
.
public class ReserveTable extends JApplet
{
public void init()
{
JSObject win = JSObject.getWindow(this);
JSObject
doc = (JSObject) win.getMember("document");
JSObject form = (JSObject) doc.getMember("entry"); //entry is my form name
String s = (String) form.getMember("dateField");
.
.
.
}
}
When I try to run the Applet, It says...
"Exception:java.lang.ClassCastException:sun.plugin.javascript.ocx.JSObject"
Could anyone tell me what's the problem with this code...Please it's urgent...where I am goind wrong?
Thanks in advance.