User a216001020
18-01-2007 00:54:26
The following code doesn't work because of the '>>' substring of reaction smiles. Anyone can suggest a way to do it?
<script LANGUAGE="JavaScript">
function open_similar(id,smiles){
msgWindow=window.open('',id,'width=250,height=250')
msgWindow.document.write ("<HEAD><TITLE>" + id + "</TITLE></HEAD><body>")
msgWindow.document.write ("<center>" + id + "<br><applet CODEBASE=\"http://www.chemaxon.com/marvin\" ARCHIVE=\"jmarvin.jar\" CODE=\"JMView\" WIDTH=200 HEIGHT=200><param NAME=\"mol\" VALUE=" + smiles + "><strong>(YOU CANNOT SEE A JAVA APPLET HERE)</strong></applet></center>")
msgWindow.document.write ("</body></html>")
}
</script>
<a href=javascript:open_similar("Molecule","O=C1CCCCC1")>M1</a><br>
<a href=javascript:open_similar("Reaction","O=C1CCCCC1>>OC1CCCCC1")>M1 to M2</a><br>
Changing '>>' to '>>' also doesn't work.
<script LANGUAGE="JavaScript">
function open_similar(id,smiles){
msgWindow=window.open('',id,'width=250,height=250')
msgWindow.document.write ("<HEAD><TITLE>" + id + "</TITLE></HEAD><body>")
msgWindow.document.write ("<center>" + id + "<br><applet CODEBASE=\"http://www.chemaxon.com/marvin\" ARCHIVE=\"jmarvin.jar\" CODE=\"JMView\" WIDTH=200 HEIGHT=200><param NAME=\"mol\" VALUE=" + smiles + "><strong>(YOU CANNOT SEE A JAVA APPLET HERE)</strong></applet></center>")
msgWindow.document.write ("</body></html>")
}
</script>
<a href=javascript:open_similar("Molecule","O=C1CCCCC1")>M1</a><br>
<a href=javascript:open_similar("Reaction","O=C1CCCCC1>>OC1CCCCC1")>M1 to M2</a><br>
Changing '>>' to '>>' also doesn't work.