• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Communication between JavaScript and JApplet

 
Greenhorn
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.
Workaround1:
By placing swingall.jar in web server itself. But it will take a long
time to download swingall.jar whenever the applet is downloaded.
Workaround2:
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?
TIA,
Venkat.
[This message has been edited by Jim Yingst (edited April 03, 2000).]
 
There's a city wid manhunt for this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic