Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!