All,

I know this is not a ChemDoodle list, but with all the recent ChemDoodle 
activity on the list, I've been playing with the Web Components.

Here's a big frustration, and maybe someone on the list can help me: If I 
literally define a JavaScript molfile variable - e.g.:

lsdfStr = 'CH4\nAPtclcactv04181210043D 0 0.00000 0.00000\n \n 5 4 0 0 0 0 0 0 0 
0999 V2000\n 0.0000 -0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 0.0000 -0.8900 
-0.6293 H 0 0 0 0 0 0 0 0 0 0 0 0\n 0.0000 0.8900 -0.6293 H 0 0 0 0 0 0 0 0 0 0 
0 0\n -0.8900 -0.0000 0.6293 H 0 0 0 0 0 0 0 0 0 0 0 0\n 0.8900 -0.0000 0.6293 
H 0 0 0 0 0 0 0 0 0 0 0 0\n 1 2 1 0 0 0 0\n 1 3 1 0 0 0 0\n 1 4 1 0 0 0 0\n 1 5 
1 0 0 0 0\nM END\n$$$$\n'

then I can dynamically load it into a Transformer3D Canvas - no problem.

If on the other hand I define lsdfStr via AJAX to Resolver, subsequent use of 
the same load routine throws an obscure JS error - TypeError: h is undefined.

If I directly copy the returned AJAX text and paste it into a direct definition 
of lsdfStr, the dynamic load works.

Any thoughts would be appreciated.

Otis

--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com




------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to