This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot access methods in converted applet

 
Sean McGurk
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
I have used the HTML converter to convert an applet so that it can run using Sun's Java 2 Runtime Environment, Standard Edition (JRE) instead of the web browser's default virtual machine by using the Sun Plug-in.
The converter seems to work by converting the applet to an Active X object. If this is the case and the applet ceases to exist as a java applet and instead exists as an Active X then how can I reference its methods, for example from within a Javascript function? Is this even possible?
For example, if I have an applet with the methods init(), sayHello() and Quit(), and wish to activate the sayHello() function once the user submits a form, then how do I go about this?
Thanks,
Sean
[This message has been edited by Sean McGurk (edited August 08, 2001).]
 
Tim Holloway
Saloon Keeper
Posts: 18365
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once you submit the form, the page is liable to disappear out from under you, applet and all. Danny Goodman talked about this in his Javascript Bible.
However, the applet's still an applet. The "activeX" stuff is just there to make the user's browser pull the plug-in, if it's needed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic