One of my tutorials which does not involve jmol and has run for many years on 
all sorts of computerist and OS's, fails to run correctly on the iPad.  I have 
tested it one early and late models and versions of iOS.  I was looking at the 
code this week to try to figure out why and narrowed the issue down to a 
declared global array which was not being read.  My son and I then tried to 
figure out why — clearly read on anything but an iPad on which it returns 
“undefined".  On a whim he changed the name of the array and all dependencies; 
things worked.

The array was originally named: orientation[ ].  It appears that the term 
“orientation” is reserved by iOS for a 90° rotation of the device.  Insert an 
alert using orientation into your javascript and see what happens.

Since we are concerned about molecular orientations, this is a warning to not 
use that term as a variable name in javascript, unless you mean it:-)


Philip Bays
Emeritus Professor of Chemistry
Saint Mary's College
Notre Dame, IN 46556
pb...@saintmarys.edu



------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to