Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Cannot access methods in converted applet

 
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).]
 
Saloon Keeper
Posts: 22137
151
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic