> then I can dynamically load it into a Transformer3D Canvas - no problem. > Here's a big frustration, and maybe someone on the list can help me: If I literally define a JavaScript molfile variable - e.g.: > 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. > On Wed, at 9:17 AM, Otis Rothenberger wrote: Just load the file from your server just like for Jmol, even if it is just a ChemDoodle canvas, using: > 3) There is no need to have the MOL data stuffed into a variable that way. You can use JmolCD.js to create a standard ChemDoodle canvas or a Jmol applet or have Jmol choose automatically based on the browser capability. This is just what we are setting up now, and you are going to love it. On Apr 18, 2012, at 10:52 AM, Robert Hanson wrote: More on it is now in the tutorial (in "Obtain File Content via AJAX"): I haven't encountered any issues with it yet. We also just added a new ChemDoodle.io.ntent() function which uses AJAX to retrieve file content from a local url. I would like to know what exactly is causing this issue though. Sometimes AJAX messes with the file line delimiters which can cause this issue. See if you encounter the same issue with Bob's js script, if you do I will look into it.
0 Comments
Leave a Reply. |