Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to invoke JApplets methods

 
Venkata Ramana
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I declared applet in <jsp :p lugin> tag as
<jsp :p lugin type="applet" code="Aplt.class" codebase="/examples/jsp/plugin/applet" name="Fractal" jreversion="1.3"
iepluginurl="\Serv\JavaRunTime/j2re-1_3_1-win.exe"
nspluginurl="\Serv\JavaRunTime/j2re-1_3_1-win.exe"
width="500" height="120" >
Now i need to to call applets public methods from my java script. How can i do this.
In my code i called like this
document.Fractal.change();
in <java :p lugin> tag i used name attribute to assign reference to my applet, i used 'Fractal' as my applet reference name.
but the above call is giving error as
document.Fractal is null or not an object.
If i am using <OBJECT> tag for declaring applet i am able to call the applets methods from javascript.

ps:
I disabled the smiles so that the :P doesn't show up as a smile. regds.
- madhav
[ April 12, 2002: Message edited by: Madhav Lakkapragada ]
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ramana"
Your name doesn't follow the javaranch guidelines. Please take a moment and change your "Publicly Displayed Name" by modifying you profile. The guidelines are available at http://www.javaranch.com/name.jsp
thanks for your cooperation
- madhav
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!