I am able to call java method from javascript when i use the browser's JVM.
But when i use the java plug-in, and call the java method, I get:"error:document.myApplet not an object". How do I call the java method in this case?
Given below is the code snippet for better understanding of the problem or to find out whether I am missing something here. Thanks.
OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "0" HEIGHT = "0" codebase="
http://java.sun.com/products/plugin/1.2.2/jinstall-1.2.2-win32.cab#Version=1,2,2,0">
PARAM NAME="code" VALUE="HelloWorld.class">
PARAM NAME="type" VALUE="application/x-java-applet">
PARAM NAME="name" VALUE="myApplet">
PARAM NAME="scriptable" VALUE="true">
</OBJECT>
input name=Submit type=submit value="test" onClick=document.myApplet.callMethod()>
[This message has been edited by arul narayan (edited March 20, 2001).]