User dfb7013c70
27-01-2012 18:40:26
I have MarvinSketch embedded on a web page and a link which causes a second tab/window/popup to open that has MarvinView embedded. When I click the link the new page opens and MarvinView displays just fine. If I close the MarvinView page and then click the same link again MarvinView will have difficulty displaying the molecule. You have to either click in the MarvinView applet to get the molecule to display or click outside your browser and come back to the page to get the molecule to show up. If you have multiple MarvinView's running sometimes one will show a molecule and others won't...seemingly at random.
An even simpler case... Put a MarvinSketch and a MarvinView on the same page. It loads fine. Close the tab and then open the page again...MarvinView sometimes does not show the molecule. The applet seems to fire up fine...it's just blank until you click it or click out of your browser. The java console shows no errors that I can see.
It also seems to be time dependant...if you close the page, wait a while, and then re-open it you won't have a problem.
The behavior can be seen with very basic html using marvin.js with only begin, mol, and end params for MarvinView using some of the molecules in the marvin deployment and just begin and end params for MarvinSketch. I've tried giving each applet unique names, tried setting the legacy_lifecycle param to false (which REALLY doesn't help), and tried setting the separate_jvm param to true...no luck.
This happens on Windows7 and Mac OSX 10.6.8 but not on Windows XP. It happens on all browsers we tested... IE8, IE9, FF9, Chrome 16 and Safari 5.1.2. Java 6 update 29. With Marvin 5.4.1.2 and 5.8.0.
Thanks in advance for any help you can give!