set molecule property from Javascript?

User 870ab5b546

04-05-2011 16:29:25

Is it possible to set a MarvinSketch molecule property from Javascript?


I want to get a value from some cell elements on a Web page and set a molecule property of a MarvinSketch molecule drawing to that value.  


I would prefer to do all this in Javascript.  Otherwise, I will have to submit the MRV code of the Molecule and the values as parts of a form, import the MRV into a Java Molecule, set the property, and get its MDocument.  

ChemAxon 7c2d26e5cf

06-05-2011 14:04:23

 


Is it possible to set a MarvinSketch molecule property from Javascript?


Yes, you can do that. Use the JMSketch.setMolProperty(String,String) method.