Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

applet re-write issues with SUN JRE.

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
We are in the process of using SUN JRE for running applets on client's internet explorer (version 6.0) as Microsoft would not extend its support for MS JVM after the end of this year. I am using classid and codebase in the object tag to enforce the jdk version 1.5.0.
There seems to be an issue in Applet Activation. By applet activation I mean the java script code needed to rewrite the applet tag inorder to activate it.
Reference:
http://www.rgagnon.com/javadetails/java-0526.html
Also, I am using netscape.javascript package for event handling and applet to java script communication.
The issue with sun jvm is as follows.
When the applet is rewritten, the applet's reference to the window containing it (The html/jsp page) is lost and hence, I am not able to call the java scripts from Applet using netscape.javascript APIs.
To be more precise,
JSObject JSWin = JSObject.getWindow(this); fais or throws a run time exception.
This works fine if I remove the re-write applet java script function but the applets will be left un-activated untill user clicks it.
Can any of you throw a light on how to fix the issue. (i.e) rewrite the applet and at the same time be able to call java scripts from the applet using netscape.javascript using sun jre.
[ March 20, 2007: Message edited by: vaithee sub ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried using an external script to generate the applet tag? That must me the best solution (if it works).

Kind regards,
Morten
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic