>Rob, I have uploaded a new version of s.htm that should work for you. I'll
>upload a full new version of Jmol now into
>http://chemapps.stolaf.edu/jmol/docs/examples-11/Jmol-11.zip
Thanks Bob, s.html works great on both mac ff3 and safari. And the .jar files
in the zip file understands the "set preservestate false" command.
>Must you do the upload at the time of file loading, or can you wait for some
>user action such as clicking a button that says "upload to server" or that
>sort of thing?
I want to set it up so that displaying the file is instantanous and uploading
only happens when users hit a button whenever they are ready. I think you are
right about the diagnosis that the commands are being executed async, but how
do I get them to be sequential.
The javascript structure that I have is therefore the following:
function jmolLoad() {
var load_script = "zap; load ?; echo waitmessage;select not solvent;
boundbox{selected} on; echo get_bound; set hideNavigationPoint false; set
perspectiveDepth off; set axesMode 0; set axes 3; set frank on; select all;
color chain; center selected; spacefill off; set background black; wireframe
off; select protein; cartoon; select ligand; wireframe 100;color boundbox
red;reset variables;set preserveState false;echo load_success;";
jmolScript(load_script);
}
function uploadTest() { //when a button is hit
var script="fileCoord = getproperty('fileContents');";
jmolScript(script);
alert(jmolEvaluate("fileCoord"));
alert("hi2");
}
_________________________________________________________________
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users