• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Communication between JavaScript and JApplet

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
How can I call a method in JApplet from JavaScript?
I have tried with < applet>,< object>, and < embed> tags using applet
id,name attributes. But the communication is possible only in IE, and
Netscape browser is giving javascript error.
I have thought of 2 workarounds.
By placing swingall.jar in web server itself. But it will take a long
time to download swingall.jar whenever the applet is downloaded.
Placed one ordinary dummy applet which contains a method say method1()
which will call originalMethod() from JApplet. I am trying to call
method1() of ordinary applet from javascript, which in turn will call
originalMethod() of JApplet. But this is also not working. The problem
is ordinary applet is running in browser's VM, whereas JApplet is
running in Plug-in VM.
Javascript has to communicate with JApplet via the Plug-in.
Can any one suggest a workaround for this problem?
[This message has been edited by Jim Yingst (edited April 03, 2000).]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic