Bob,

The only difference between these 2 pages is the function below:

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

On the Model Tools screen, changing a color (or simply clicking an atom) 
locks up the applet for 
http://chemagic.com/web_molecules/script_page_large2.aspx. The last Jmol 
version that I was using was 12.1.14_dev. No problem there.

  Changing select below to select * fixes the problem.

function processPick(appNum, msg, indexNum) {
     var scpt = "";
     if (colorPicOn) {
         scpt = "select atomIndex = _atomPicked;color " + atomColor + 
";select;";
         jmolScript(scpt);
     }
     if (rotationPicOn == true) {
         jmolScript("set modelkitMode false;");
         setRot(2);
     }
}

I just now had a thought: Type "select;" or "select" into the Edit 
screen command field of the healthy page and click run. The applet locks 
up! Just to make sure it's not my translation of jmolScript in the 
field, type

~jmolScript("select")

Tilde required. That will run the JavaScript directly. Same result. The 
Applet locks.

Unrelated note:

The Users' Manual link on the page points to the current version of 
Tom's manual. As I watch his 3 videos, the thought that goes through my 
head is try to do all that to a model on an i-phone or i-pad. What is 
Apple thinking? They're going to take chemists back to watch the pretty 
molecule spin!

Otis




------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to