• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

call java method from javascript when using java plug-in

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please don't post the same message to more than one forum. You obviously expect to read more than one forum - so do the people who might answer your question. This thread is now closed, all replies to the one in "Applets".
 
reply
    Bookmark Topic Watch Topic
  • New Topic