Hi Again Bob,

I don't know if this will help, but I put your latest coordinate file
string into a JavaScript variable called bobFile on the following
page:

http://chemagic.com/web_molecules/script_page_large.aspx

bobFile was not altered. It has the \n's.

The page uses Jmol 11.9.9.

There is a JavaScript Jmol Script execution field on the page.
JavaScript commands require a leading tilde. Further, the tilde must
be the first character in the field with no space between the tilde
and the JavaScript command. Click Run to see script results. On my
Windows XP platform, the following commands are instructive:

~alert(bobFile);

~document.getElementById(pickApplet).loadInlineString(bobFile, "", false);

pickApplet is my variable for the applet name. The above command,
including the tilde, is good to go. Remember, the tilde makes my page
interpret this as JavaScript.

On my machine, the alert, of course, shows the string, sans the \n -
i.e. Jmol is reading them as intended. The direct call of the applet
method properly loads the string.

I should mention that I do not use jmol.js. I use a cross browser object tag.

I do not have quick access to a Mac, so I'm interested in how a Mac
responds to this page. I hope the above information is of some use to
you. As an aside, check out Jmol's UFF fuction on your model once
(if?) it loads (UFF link). I think this relatively new addition to
Jmol is really neat.

Otis

-- 
Otis Rothenberger
http://chemagic.org

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to