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 ]