Thanks Angel.  I've changed my invocation of Jmol as follows:

            <script type="text/javascript">
                jmolInitialize('<%= pathToRoot %>nosession/jmol');
                jmolApplet([250, 250]);
                jmolLoadInline('<%= Utils.toValidJS(calcResults) %>');
            </script>

It compiles at runtime as,

                jmolInitialize('../../nosession/jmol');
                jmolApplet([250, 250]);
                jmolLoadInline('\n  Marvin  10270415522D\n\n  9  9  0  0  0  0  
          999 V2000\n   -2.2457    0.8188    0.0000 C   0  0  0  0  0  0  0  0  
0  0  0  0\n   -2.2457   -0.0063    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  
0\n   -1.5313   -0.4188    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n   
-0.8168   -0.0063    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n   -0.8168  
  0.8188    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n   -0.1023    1.2313 
   0.0000 O   0  0  0  0  0  0  0  0  0  0  0  0\n   -1.5313    1.2313    
0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n   -1.5313    2.8813    0.0000 C 
  0  0  0  0  0  0  0  0  0  0  0  0\n   -1.5313    2.0563    0.0000 C   0  0  
0  0  0  0  0  0  0  0  0  0\n  7  1  1  0  0  0  0\n  7  5  2  0  0  0  0\n  1 
 2  2  0  0  0  0\n  2  3  1  0  0  0  0\n  3  4  2  0  0  0  0\n  4  5  1  0  
0  0  0\n  5  6  1  0  0  0  0\n  8  9  1  0  0  0  0\n  7  9  1  0  0  0  0\nM 
 APO  1   9   1\nM  STY  1   1 SUP\nM  SAL   1  2   8   9\nM  SBL   1  1   9\nM 
 SMT   1 Et\nM  END\n');
            </script>

But although it now appears to load, I don't see a molecule in the viewer.

Furthermore, if I try to open another Jmol applet (with the first page open or 
closed), Safari hangs.

________________________________
From: Angel Herráez <angel.herr...@uah.es>
Reply-To: <jmol-users@lists.sourceforge.net>
Date: Wed, 13 Jan 2010 14:26:28 -0500
To: <jmol-users@lists.sourceforge.net>
Conversation: [Jmol-users] Jmol demo page hangs
Subject: Re: [Jmol-users] Jmol demo page hangs

Bob G., thanks for reporting this.

I've run a quick check with a local copy of the offending page, and it's not an 
issue of
linefeeds.
It's a bug in Jmol. I can trace it back to between 11.8.7 and 11.8.11.
11.8.15 (the current version at the website) and 11.9.13 fail too.

jmolLoadInline() works fine even with 11.8.15.
It's just jmolAppletInline() that has the problem.
If you change it to
        jmolAppletInline("200", "")
then the radio buttons that call jmolLoadInline() work fine.


And I've done all that using the Jmol.js of 11.8.15, so it's not a Jmol.js bug


------------------------------------------------------------------------------
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

Reply via email to