Thanks for your help, Otis. Unfortunately, your approach won't work for me; we acquire the data from a Java variable whose value in turn we acquire from a database.
We use MOL files in Javascript variables with \n at the end of each line as input for other applets, e.g., MarvinSketch and MarvinView. So I think this is not a platform problem, but a Jmol problem. ________________________________ From: Otis Rothenberger <o...@chemagic.com> Reply-To: <jmol-users@lists.sourceforge.net> Date: Wed, 13 Jan 2010 13:47:56 -0500 To: <jmol-users@lists.sourceforge.net> Conversation: [Jmol-users] Jmol demo page hangs Subject: Re: [Jmol-users] Jmol demo page hangs Hello Bob, I see the same thing with Firefox and XP. I notice that the page source ends coordinate file lines with \n - linefeed. I wonder if this is a cr/lf issue. I run into this problem frequently. I'm not sure about a cross platform solution, but I wonder is ending the lines with \r\n would work on your system. Alternatively, I've had luck with loading an inline file from the JME applet into Jmol with the following direct approach: document.getElementById(MyAppleName).loadInlineString(jmeString, "hover %a atomno=%i;echo;isosurface '';mo translucent;isosurface translucent;", false); Ignoring my load script, jmeString is simply the un-doctored coordinate string (molfile) from JME - i.e. no concatenated LF or CR/LF. Otis -- Otis Rothenberger http://chemagic.org On Wed, Jan 13, 2010 at 1:12 PM, Grossman, Robert B <robert.gross...@uky.edu> wrote: > Hi, > > I'm trying to figure out how to load molecular structures into Jmol from > JavaScript variables (instead of files). When I go to the demo page > http://jmol.sourceforge.net/demo/jssample2/ , Jmol fails to load. That is, > it says, "Loading Jmol applet ..." and the clock begins, but it never > finishes loading. ??? > > -- Bob > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > > > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users