Hi,
I have some random problem to load some molecule (mol file) with JCP Viewer
applet. I see only a totally white object. I have no problem to load it with
the editor applet and the problem resolves itself when I double-click on the
applet object (detachable = true). It is very special and it does not happen
with all the molecules...
Here is my code :
> echo "<!--[if IE]>
> <object classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\"
>
> codebase=\"
> http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=1,5,0,0\
> "
> width=\"500\" height=\"400\"
> id=\"JCP\">
> <script>/*<![endif]--><script
> type=\"text/javascript\">/**/</script>
> <!--[if !IE]><!-->
> <object type=\"application/x-java-applet;version=1.5\"
> width=\"500\" height=\"400\" id=\"JCP\" scrollbars=\"false\"
> detachable=\"true\">
> <!--<![endif]-->
> <param name=\"code\" value=\"org.openscience.jchempaint.applet.
> JChemPaintViewerApplet\">
> <param name=\"archive\"
> value=\"jchempaint/jchempaint-applet-core.jar\">
> <param name=\"load\" value=\"jmol/mol/".$Molfile."\">
> </object>";
>
Here is a sample of mol file with loading problem :
Test.cdx
> OpenBabel05051014322D
>
> 18 20 0 0 0 0 0 0 0 0999 V2000
> 25.1182 -26.2472 0.0000 C 0 0 0 0 0
> 25.1182 -30.1793 0.0000 C 0 0 0 0 0
> 27.8987 -32.9598 0.0000 C 0 0 0 0 0
> 31.8308 -32.9598 0.0000 C 0 0 0 0 0
> 34.6113 -30.1793 0.0000 C 0 0 0 0 0
> 34.6113 -26.2472 0.0000 C 0 0 0 0 0
> 31.8308 -23.4667 0.0000 C 0 0 0 0 0
> 27.8987 -23.4667 0.0000 C 0 0 0 0 0
> 37.3917 -32.9598 0.0000 C 0 0 0 0 0
> 41.3239 -32.9598 0.0000 C 0 0 0 0 0
> 44.1044 -30.1793 0.0000 C 0 0 0 0 0
> 44.1044 -26.2472 0.0000 C 0 0 0 0 0
> 41.3239 -23.4667 0.0000 C 0 0 0 0 0
> 37.3917 -23.4667 0.0000 C 0 0 0 0 0
> 33.7969 -20.0614 0.0000 C 0 0 0 0 0
> 31.8308 -16.6560 0.0000 C 0 0 0 0 0
> 27.8987 -16.6560 0.0000 C 0 0 0 0 0
> 25.9326 -20.0614 0.0000 C 0 0 0 0 0
> 1 2 1 0 0 0
> 8 1 1 0 0 0
> 2 3 1 0 0 0
> 3 4 1 0 0 0
> 4 5 1 0 0 0
> 5 6 1 0 0 0
> 5 9 1 0 0 0
> 6 7 1 0 0 0
> 14 6 1 0 0 0
> 7 8 1 0 0 0
> 7 15 1 0 0 0
> 18 8 1 0 0 0
> 9 10 1 0 0 0
> 10 11 1 0 0 0
> 11 12 1 0 0 0
> 12 13 1 0 0 0
> 13 14 1 0 0 0
> 15 16 1 0 0 0
> 16 17 1 0 0 0
> 17 18 1 0 0 0
> M END
>
As you can see it has been generated with chemdraw and converted with
openbabel.
Java version : 1 6 0 20. and last release of firefox.
It seems to be a refresh problem, because I have a similar problem with IE,
but if I scroll down I could see the structure. With some other structures,
I have to change tab on my browser, or put my mouse over the applet to see
the molecule...
It is very strange and some help would be appreciated.
Thanks,
Regards.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user