get the molecule

User 247a2c5018

02-03-2016 15:00:00

Hi,


 


with marvinsketch i use create a submit button : 


 


function validateForm()


{



var molfile = document.MSketch.getMol("mol");


document.formulaire.requ_molfile.value = molfile;



var jmef = document.MSketch.getMol("smiles")


document.formulaire.requ_structure.value = jmef;


}


 


 


how to change this code to fit with marvinjs?


 


thanks 


 


Kiet

ChemAxon 76c88f5366

02-03-2016 15:53:28

Hi,


Please check our example here: https://marvinjs-demo.chemaxon.com/latest/examples/example-getmol.html . />This example shows how to retrieve the molecule source from Marvin JS sketcher.


 


In this forum, there is another topic which could contain useful information for you; please check this:


https://www.chemaxon.com/forum/ftopic14575.html 


Among these posts, there is one (https://www.chemaxon.com/forum/viewpost64417.html#64417), written by a Marvin JS developer, which contains an example code snippet and a zipped example file for asynchronous call.


I hope this will help.


Best regards, 
Eszter