clearing previous structure on applet reload

User 4b347806a7

26-01-2011 14:17:21

Hello,


We just upgraded from jchem 5.1 to 5.4.  In the older version, whenever applet reloaded in jsp, the previous drawn structure was cleared.  In the new version, the last structure drawn reappears whenever applet is reloaded.  How do I prevent this behavior?  We seed the applet with a blank mol in the jsp, but still the previous structure appears.  When viewing the html source when the page is loaded, I can see that the mol parameter is indeed blank:


 msketch_param("mol", "");

Thank you for your help!

ChemAxon 7c2d26e5cf

27-01-2011 11:42:40

This is the side effect of legacy_lifecycle.


Set this applet parameter to false to avoid this issue.


msketch_param("legacy_lifecycle",false);

You can read more about it in the documentation: legacy_lifecycle applet parameter.