User dfeb81947d
22-11-2005 16:28:57
Dear Support,
I'm using InternetExplorer as Web Browser and Marvin 4.0.3
I found a problem with marvin applet and JDK 1.5 when using the tag <OBJECT> to draw the applet.
I wanted to draw an applet according to a javascript command that add a molecule inside (cf code below and html example).
When using JDK 1.4.2 everything is working fine.
When using JDK 1.5 and <APPLET> tag there is no problem.
But with <OBJECT> Internet Explorer is frozen.
(see example attached below)
Here is the code that froze IE when <OBJECT> is used:
We use hardcode <APPLET> and <OBJECT> to identify the problem.
In our application we always use marvin.js.
but in that case it failed with JDK 1.5.0 and works with JDK 1.4.2
A question is: Can we use all the time <APPLET> tag to draw the applet under IE 5.5 + ?
If we use the <applet> tag it would solve all the problem and we won't have to use marvin.js to draw the applet.
Is it possible?
Thank you for your help.
Warmest regards
Jacques
I'm using InternetExplorer as Web Browser and Marvin 4.0.3
I found a problem with marvin applet and JDK 1.5 when using the tag <OBJECT> to draw the applet.
I wanted to draw an applet according to a javascript command that add a molecule inside (cf code below and html example).
When using JDK 1.4.2 everything is working fine.
When using JDK 1.5 and <APPLET> tag there is no problem.
But with <OBJECT> Internet Explorer is frozen.
(see example attached below)
Here is the code that froze IE when <OBJECT> is used:
Code: |
function displayForms(type) { document.getElementById("divViewer").style.visibility='hidden'; document.getElementById("divViewer").style.display='none'; var str = ""; var i = 0; i = type * 1; switch (i) { case 1: str = "<applet NAME='MSketch' CODEBASE='marvin' ARCHIVE='marvin.jar' CODE='MSketch' WIDTH=460 HEIGHT=380>"+ "</applet>"; break; case 2: str = "<object CLASSID='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93' width='500' height='500' NAME='MSketch'>"+ "<param NAME='codebase' VALUE='marvin'>"+ "<param NAME='archive' VALUE='marvin.jar'>"+ "<param NAME='code' VALUE='MSketch'>"+ "<param NAME='scriptable' VALUE='true'>"+ "</OBJECT>"; break; default: str = "Unknown Viewer"; } document.getElementById("divViewer").innerHTML=str; document.getElementById("divViewer").style.visibility='visible'; document.getElementById("divViewer").style.display='block'; if (i==1 || i==2) {document.getElementById("MSketch").setMol(document.getElementById("MolTxt").value);} } |
We use hardcode <APPLET> and <OBJECT> to identify the problem.
In our application we always use marvin.js.
but in that case it failed with JDK 1.5.0 and works with JDK 1.4.2
A question is: Can we use all the time <APPLET> tag to draw the applet under IE 5.5 + ?
If we use the <applet> tag it would solve all the problem and we won't have to use marvin.js to draw the applet.
Is it possible?
Thank you for your help.
Warmest regards
Jacques