How to interact with MarvinSketch using Javascript ?

User 761d9eb85b

16-11-2010 14:22:11

Hello,


I am trying to find out how to open the sketch window using javascript method. Is it possible ? If yes, how can I do so ?


I am also trying to get the picture of the molecule to display it the page. I guess I should use getImageShowURL, but it returns me an empty string. How is it supposed to be used ?


Thanks.

ChemAxon 7c2d26e5cf

18-11-2010 10:23:24

In current Marvin, there is no way to detach sketch window from JavaScript.


We are checking the getImageShowUrl issue.

ChemAxon 7c2d26e5cf

18-11-2010 10:38:10

You can detach sketcher window by startup if you define "detach" applet parameter but you can not control it from JavaScript after startup.


Can you send your embedded applet code where the getImageShowURL issue has been occured?

User 761d9eb85b

19-11-2010 08:42:20

Hello,


Thank you for your answer. I'll deal with the detach parameter.


I have just thought about a fact. Is the web service needed to get the picture url ? If so, how can I do so in .NET ?


Thanks.

User c1ce6b3d19

19-11-2010 09:08:53

Xia Ning,


Although I am unsure if your specific URL needs can be met, you can retrieve images by converting molecules into image formats using the MolConvert web service.


https://www.chemaxon.com/webservices/soap/MolConvertWS.html#convert


 


Check out the C# Web Service example, which uses the .NET framework to access JChem Web Services. 


https://www.chemaxon.com/webservices/CSharp/index.html


 


Jonathan Lee