Load CML file in applet

User 21178756d4

01-11-2011 10:46:25

Hi All,


 


 


I am Developing a Chemical Editor and i am facing few problems.


 


1) I want to load java applet with cml data like we can load applet with mol file


eg:- 


mview_begin("../../../..",470,445);   


mview_param("mol",value);


    mview_end();


so i want to load applet with cml data.


 


2) i want to create image of the equation without using savsas form file menu.


 


Please Help Me ASAP,it's very urgent.


 


Thanks in advance and do the needfull.


Thanks & Regards


Anil Kumar

ChemAxon 7c2d26e5cf

04-11-2011 09:09:56

Answer question #1: See the linking topic


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


Answer question #2:


You can not save MarvinSketch applet content programatically from JavaScript.


Instead of that, retrieve the structure in MRV format, post it to the server where you can convert it into an image format with the help of the Marvin Beans API. The generated image can be posted back to the browser to the client side. You can use Ajax if you would like to avoid reload the whole page by this action.


You can find examples here:


https://www.chemaxon.com/marvin/examples/beans/image-generation/index.html