On Thu, Sep 16, 2010 at 3:38 PM, Otis Rothenberger <[email protected]>wrote:

>  Bob,
>
> I'm having a Safari problem with a two model load from JME to Jmol. I
> think it's actually a JavaScript problem with the split function, and
> I'm pretty sure I can clear it up. In tracking this down, however, I
> noticed something that I want to understand. Here's the Console History:
>
> mod1 = '2 1 C 3.14 -4.03 C 4.35 -4.73 1 2 1';mod2 = '2 1 C 7.73 -3.75 C
> 8.94 -4.45 1 2 1';load '@mod1';color label pink;select formalCharge <>
> 0;label %C;set echo top left;font echo 16 sansserif;color echo
> yellow;select *;hover off;delay 1;set appendNew false;load APPEND
> '@mod2';select *;wireframe 0.15;spacefill 23%;boundbox {*};centerat
> boundbox
> jmeString='2 1 C 3.14 -4.03 C 4.35 -4.73 1 2 1'
> jmeString='2 1 C 7.73 -3.75 C 8.94 -4.45 1 2 1'
>
> The Jmol Script starting with mod1= is actually created in JavaScript
> with the two jme strings coming from a JavaScript call to JME - mod1 and
> mod2 are my Jmol Script globals. Safari is getting only partial strings
> from JavaScript for these values.


from JavaScript -- you mean in Jmol?


> I think a split on "|" in the JME
> string is being executed before JME completely returns the JME file.


what's doing the split? Your JavaScript?


> My
> real question is this:
>
> How do the jmeString variables enter into this? I'm pretty sure they are
> not my global variables. Do you have a global jmeString at work here?
>

When a JME file loads, I thought it simple enough to create the variable
"jmeString" beause that might be useful. You can ignore them.


>
> Otis
>
> --
> Otis Rothenberger
> chemagic.com
>
>
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to