User eb282fcb6c
08-05-2006 13:34:38
Hi,
We're putting a website together using the MarvinSketch applet. Most of the time it works well but occassionally we're getting test users (in other organisations) say they get they get a box with a cross in where the drawing tool should be and a message at the bottom of the browser saying "Loading Java Applet Failed...".
I was wondering if anyone had ideas as to what may be causing this?
Thank you,
Pat Boyce
p.s. The code we used to load the applet is:
<script language="JavaScript1.1" src="marvin/marvin.js"></script>
<script language="JavaScript1.1" src="marvin/js2java.js"></script>
and
<script language="JavaScript1.1">
var isJs2Java = isLiveConnect();
function exportMol(format)
{
if((document.MSketch != null) && isJs2Java)
{
var s = document.MSketch.getMol(format);
//s = unix2local(s); // Convert "\n" to local line separator
s = s.replace(/\n/g, '2break2')
document.Form1.hiddenMolText.value = s ;
}
else if(!isJs2Java)
{
if(format == 'smiles')
{
setIsCompressed(false);
} else
{
setIsCompressed(true);
}
setMethod("MSketch.getMol","java.lang.String");
addMethodParam(format);
setPostJsMethod("parent.printMol()");
runMethod();
}
}
We're putting a website together using the MarvinSketch applet. Most of the time it works well but occassionally we're getting test users (in other organisations) say they get they get a box with a cross in where the drawing tool should be and a message at the bottom of the browser saying "Loading Java Applet Failed...".
I was wondering if anyone had ideas as to what may be causing this?
Thank you,
Pat Boyce
p.s. The code we used to load the applet is:
<script language="JavaScript1.1" src="marvin/marvin.js"></script>
<script language="JavaScript1.1" src="marvin/js2java.js"></script>
and
<script language="JavaScript1.1">
var isJs2Java = isLiveConnect();
function exportMol(format)
{
if((document.MSketch != null) && isJs2Java)
{
var s = document.MSketch.getMol(format);
//s = unix2local(s); // Convert "\n" to local line separator
s = s.replace(/\n/g, '2break2')
document.Form1.hiddenMolText.value = s ;
}
else if(!isJs2Java)
{
if(format == 'smiles')
{
setIsCompressed(false);
} else
{
setIsCompressed(true);
}
setMethod("MSketch.getMol","java.lang.String");
addMethodParam(format);
setPostJsMethod("parent.printMol()");
runMethod();
}
}