mview applet load many molecules

User 568550d85a

21-04-2011 09:24:38

Hello


I searched the forum but did not find (yet) an answer to my problem: I have a PHP website where I am trying to load many molecules into an mview applet. Because I found this easiest the PHP creates the following marvin applet code:


<script type="text/javascript" SRC="marvin/marvin.js"></script>
<script type="text/javascript">
<!--
mview_name="MView"
mview_begin("marvin/",500,500);
mview_param("VisibleRows", "4");
mview_param("cols", "4");
mview_param("border",1);
mview_param("molbg", "#ffffff");
mview_param("layout",":2:1:"
+"M:0:0:1:1:c:b:1:1:"
+"L:1:0:1:1:c:n:0:1")

mview_param("rows", "3")
mview_param("cell0", "|CCC|tag")
...
mview_param("cell999", "|CC#C|tag2")
mview_end()
//-->
</script>



This code works fine up to 1000 molecules. If I try to load more than that, the applet just vanishes/does not start at all without any notification or error message. What do you recommend to work around this problem? Shall I use some different molecule loading method? Or can I split this somehow??? (Max. num. molecules is planned to be 100'000...)


Lorenz

ChemAxon 7c2d26e5cf

21-04-2011 14:36:33

It seems that the browser can not handle so huge String (embedded applet code with more than 1000 records).


Give the structures as an URL.


mview_name="MView"
mview_begin("5.4.1.1/marvin/",500,500);
mview_param("VisibleRows", "4");
mview_param("cols", "4");
mview_param("border",1);
mview_param("molbg", "#ffffff");
mview_param("layout",":2:1:"
+"M:0:0:1:1:c:b:1:1:"
+"L:1:0:1:1:c:n:0:1")
mview_param("rows", "500")
mview_param("mol","NCI-2000.smiles");
mview_end();