aspose file tools
The moose likes Applets and the fly likes how can i call a applet from a javascript functions??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "how can i call a applet from a javascript functions???" Watch "how can i call a applet from a javascript functions???" New topic
Author

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

senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 182
how can i call a applet from a javascript functions???
Chris Stehno
Ranch Hand

Joined: Feb 26, 2001
Posts: 180
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.


- Chris Stehno, SCPJ
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how can i call a applet from a javascript functions???
 
Similar Threads
Calling Javascript function from Java Code
java to javascript communication
Using applet to write to HTML page
Communication between two applets
how can i call a functin in javascript from java applet