Scott, Very cool! A comment or two:
function jmolMessageCallback(app, message) {
var indexOfScriptCompleted = message.indexOf("Script completed");
I don't recommend doing anything with that message except
var s=message+""
This is because some browsers deliver "message" as type other than "string", and it can
crash the browser to do message.indexOf() on it. Safer to "stringicize" it immediately and
use the string version instead.
function jmolReadyCallback(name)
I don't think ReadyCallBack is implemented. Miguel?
enqueueJmolScript("show orientation");
Ah, yes.... This will be simpler when Miguel implements "save/restore
orientation"
Then there won't be that momentary flash of the "naked" model.
Also, your script queuing and ready actions will be easier when we get
.loadInline(model,script).
Bob Hanson
Scott Menor wrote:
Hi Miguel,
I contacted you a bit ago re: a new feature request to add models to an
existing set of one or more models.
I've implemented a small kludge using Javascript and LoadInline to get
similar functionality though a built in method for Jmol would still
make things a whole lot easier and could improve things).
A procedure for accessing our site is enclosed - I'm hopeful that
you'll see the potential utility of a built in function and raise the
priority of adding an 'appendModel' method.
Thanks and Best Regards,
Scott
procedure:
1. register here - http://129.219.33.221/register/ first
2. go here - http://129.219.33.221/software/first/first_online
3. upload a .pdb file (you'll get better results if it's protonated but
any single-model structure without severe pathologies should do; I've
enclosed a monomer from the 1A2P structure for Barnase for your
convenience)
4. click on the red triangle to the right of "Options for FRODA
analysis (for dynamics)"
5. select "Use FRODA dynamics"
6. click 'run'
7. click on the red triangle to the right of "Molecular Visualization
(not recommended for slow connections):"
8. watch live updates
Please feel free to play with the other options (we'd appreciate any
feedback you may have; just try to be reasonably gentile and keep in
mind that it's only a beta :-) .
--
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
"Imagination is more important than knowledge." - Albert Einstein
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers