• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i call a applet from a javascript functions???

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i call a applet from a javascript functions???
 
Chris Stehno
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your HTML applet tags (or object/embed tags) you will want to name the applet using the name='somename' attribute. You can then access the applet from JavaScript using this name. If I remember correctly, you can then access the applet with 'document.applet.name.setYourProperty()' ... it may be applets rather than applet. If you have trouble getting it to work, feel free to email me (chris@stehno.com) and I will whip up a quick little example.
Hope this helps.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!