• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to invoke JApplets methods

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic