User 4ceb4fe234
18-06-2008 06:51:08
Hi everybody,
I've just a little problem with the Marvin Sketch applet. I've got a web page with 2 applets on it, a visible applet with a button and an invisible (size 0). When the button on applet #1 is pressed, it calls a method (showApplet()) of applet #2. This method loads and initializes the MarvinSketch applet, see attached file.
MarvinSketch opens and can be used to edit a structure. After MarvinSketch has been closed, a JavaScript function is triggered using the "listenpropertychanged" parameter. This function calls a Java function of applet #2 that retrieves the molecule from MarvinSketch using the getMol() function (or - equivalent - selectAllAtoms() followed by a getSelectedMol()).
This works very well using Java 1.6 in IE and Firefox. It also works very well using Java 1.5 in IE. But it does not work using Java 1.5 in Firefox (all versions). And it also does not work in Opera 9.50 using Java 1.5 or 1.6.
The error occurs while calling the MarvinSketch method getMol() or getSelectedMol(), respectively (see method getMolfile()). Other MarvinSketch method called from applet #2, like selectAllAtoms(), getMolFormula() or setMol(), are doing fine.
Can you give me a hint?
We are using Java 1.5.0_13, Marvin 5.0.x (I don't know the correct version, because I've installed many versions and the about box doesn't work).
Here is a code snippet defining the applet tag:
<applet codebase='jar' name='StartMarvin' code='StartMarvin.class' archive='ReaxysSEApplet.jar,jmarvin.jar' width='0' height='0' mayscript>
<param name='autoscale' value='false'>
<param name='detach' value='show'>
<param name='undetachByX' value='true'>
<param name='menubar' value='true'>
<param name='listenpropertychange' value='true'>
<param name='StructureEditor' value='MarvinInit2'>
<param name='ConfigFile' value='u:\se\se.ini'>
</applet>
Attached is a file that containing the code of applet#2.
I've just a little problem with the Marvin Sketch applet. I've got a web page with 2 applets on it, a visible applet with a button and an invisible (size 0). When the button on applet #1 is pressed, it calls a method (showApplet()) of applet #2. This method loads and initializes the MarvinSketch applet, see attached file.
MarvinSketch opens and can be used to edit a structure. After MarvinSketch has been closed, a JavaScript function is triggered using the "listenpropertychanged" parameter. This function calls a Java function of applet #2 that retrieves the molecule from MarvinSketch using the getMol() function (or - equivalent - selectAllAtoms() followed by a getSelectedMol()).
This works very well using Java 1.6 in IE and Firefox. It also works very well using Java 1.5 in IE. But it does not work using Java 1.5 in Firefox (all versions). And it also does not work in Opera 9.50 using Java 1.5 or 1.6.
The error occurs while calling the MarvinSketch method getMol() or getSelectedMol(), respectively (see method getMolfile()). Other MarvinSketch method called from applet #2, like selectAllAtoms(), getMolFormula() or setMol(), are doing fine.
Can you give me a hint?
We are using Java 1.5.0_13, Marvin 5.0.x (I don't know the correct version, because I've installed many versions and the about box doesn't work).
Here is a code snippet defining the applet tag:
<applet codebase='jar' name='StartMarvin' code='StartMarvin.class' archive='ReaxysSEApplet.jar,jmarvin.jar' width='0' height='0' mayscript>
<param name='autoscale' value='false'>
<param name='detach' value='show'>
<param name='undetachByX' value='true'>
<param name='menubar' value='true'>
<param name='listenpropertychange' value='true'>
<param name='StructureEditor' value='MarvinInit2'>
<param name='ConfigFile' value='u:\se\se.ini'>
</applet>
Attached is a file that containing the code of applet#2.