I am trying to load a molfile into the jchempaint applet using the code
listed below. However, when I click on the load button I get a popup
window with the message "Could not determine file format". I've tried
this with versions 2.2.1, 2.3.1, and 2.3.2 of the applet. a-pinen.mol
loads just fine in the jchempaint application. Any suggestions?
Doug
<html>
<head>
<title>The JChemPaint Applet Demo</title>
<script language="JavaScript">
function loadMolecule() {
document.Editor.setMolFile("a-pinen.mol");
}
</script>
</head>
<body BGCOLOR="#ffffff" LINK="#000099">
<h2>The JChemPaint Applet</h2>
<applet
code="org.openscience.cdk.applications.jchempaint.applet.JChemPaintEditorApplet"
archive="jchempaint-applet-core.jar"
name="Editor"
width="600" height="500">
</applet>
<<br>
<input type="button" value="load" onClick="loadMolecule();">
</body>
</html>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user