I have updated the interactive script documentation at

http://www.stolaf.edu/people/hansonr/jmol/docs

NEW:

 set monitor -1
 comment (#)

I believe that "polyhedra" does not work. Can anyone tell me if you can get it
to work in the latest release (10.00.11) or any, for that matter? I'm sure I saw it work there before....


Also, I've implemented a slightly modified version of Jmol.js locally here at St. Olaf on the documentation site that now allows us to pop up windows with molecules in them. I think this makes for a more interesting documentation (because you can pop up a snippet of example code and play with it yourself). Check it out at

http://www.stolaf.edu/people/hansonr/jmol/docs/#.slab


I will suggest that my changes be incorporated into the official
Jmol.js, but I'd rather let others do that. The key is to allow the
writing functions such as jmolApplet() to return a string, not use document.write directly. This is important because while one window is
writing to a new window's document, that written code cannot itself also
write to the same document using document.write() commands. That is:

 win.document.write("jmolApplet()")

is a sure bet for a crash with the current Jmol.js file.

But this works fine when jmolApplet() just returns a string instead of itself doing the document.write() command again.

In addition, one needs to use an explicit "suffix" for the applet name so that each time a new window is opened, the applet has the same name (for scripting from links). If you are interested, you can see how it works in the documentation code.

http://www.stolaf.edu/people/hansonr/jmol/docs/code.js

(look for "showModel")

This modification of Jmol.js will allow us also to write applets on the fly to divs, frames, and other windows. Especially important, this allows one to write the applet AFTER the page is loaded. To date, this has been impossible using Jmol.js.

HOWEVER, while doing this I ran into a problem with Jmol.js as written. In particular, I had to set

 _jmol.archivePath="JmolApplet.jar"

explicitly, because otherwise, at least from my site, the applet took FOREVER to load. (Like 1-2 minutes.)


Bob


--
Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 
55057
mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to