User a8020badc4
17-05-2011 14:09:51
Hello,
Could someone illustrate a very basic example of how to set the molecule value of an MSpaceApplet using javascript?
Something along the lines of the below code
function changeMol(){
document.MSpaceApplet.setMolProperty("molecule",http://www.chemaxon.com/marvinspace/data/1ETR.mol style="font-family: courier new,courier;">)
}
<applet codebase="../../.."
code="chemaxon/marvin/applet/MSpaceApplet" name="MSpaceApplet" width=400 height=400
archive="mspace.jar,jmarvin.jar,jogl.jar">
<param name="progressbar" value="true">
<param name="selectionpanel" value="false">
<param name="molecule" value="http://www.chemaxon.com/marvinspace/data/1ETS.mol">
</applet>
<input type="button" onClick"changeMol()" value="Change">
Thanks,
S