From: Eric M. <em...@mi...> - 2005-08-29 00:53:43
|
At 8/28/05, you wrote: > >> http://www.stolaf.edu/people/hansonr/jmol/docs/#.atom%20expressions > >> then click on "in a new window using 1blu.pdb" > >You should see a message "creating Jmol Applet", and the page should load. >All I added was an alert in _jmolApplet(). > >Believe it or not, this is the ONLY change in the code. Hi, Bob, This works for me, too, in IE, Win98. Tim and Frieda and I have encountered many peculiar timing issues like this one in javascript. To avoid using the ugly alert, try segregating the code after the alert into a separate function, then instead of putting the alert before calling the function, call it after a delay setTimeout("new_function()", 100); where "100" is the time delay in milliseconds. Not infrequently, a single millisecond delay makes all the difference, but I usually determine the minimum that works and then increase it as high as seems tolerable. (There are 5 or 10 such delays in the startup of Protein Explorer, which explains some of its startup sluggishness, but there are a lot of messagecallback transactions and parsing going on in the background!) ---- Eric Martz, Professor Emeritus, Dept Microbiology University of Massachusetts, Amherst MA US http://www.umass.edu/molvis/martz |