Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calling JAVA methods from JavaScript in IE

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can invoke the public methods of your applet from JavaScript from IE4(I.E ship with Liveconnect). This functionality works fine when I use JDK 1.3.x to write the applet. Recently I upgraded to JDK 1.4.x. Now I recompiled the Applet again. Now it is not able to call the public methods of my applet from Javascript. What is the reason for this? I am using Internet Explorer 6.0, SP1. Any help on this would be appreciated.
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have run into the same problem and the only two solutions I could come up with were to compile it with 1.3 or to use the Java Plugin rather than the old applet tags... the plugin is preferable, as it is easier to updrade.
Hope this helps.
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
just to point a important thing...
as soon as u use OBJECT/EMBED tags instead the conventional APPLET tag you will not be able to invoke public methods of the applet via NAME attribute in the EMBED. this is a Netscape issue. it works fine in IE using ID attribute for the applet's OBJECT element.
so b aware...
regards
maulin.
 
What do you have in that there bucket? It wouldn't be a tiny ad by any chance ...
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic