document.MSketch.getMol is not a function

User be1039f1ca

22-06-2009 16:01:06

Since upgrading from 5.0.x to 5.2.2 I get this error when trying to get the molFile.  It happens in Firefox 3.0, but works fine in IE 7.



<script type="text/javascript">
<!--
function submitIfLoaded(formName)
{
var form=document.forms[formName];
if(sketcherLoaded) {
form.action="/_gic/structure/search.plx";
form.molfile.value=document.MSketch.getMol('mol');
form.submit();
} else
alert("Page loading. Please wait.");
}
// -->
</script>

<script LANGUAGE="JavaScript1.1" SRC="/_gic/structure/marvin/marvin.js"></script>
<script LANGUAGE="JavaScript1.1">
<!--
msketch_name = "MSketch";
msketch_begin("/_gic/structure/marvin", 200, 200);
msketch_param("detach", "hide,size=440x440");
msketch_param("undetachByX","false");
msketch_param("preload", "MolExport,GraphInvariants,Parity");
msketch_param("menubar", "true");
msketch_param("bgcolor", "#b0b0b0");
msketch_param("molbg", "#F0F0F0");
msketch_param("implicitH", "heteroterm");
msketch_param("undo", "50");
msketch_end();
//-->
</script>

User be1039f1ca

22-06-2009 19:21:57

Strange, it seems to work now after restarting FF.