Bob,

Maybe everyone got this from the beginning, but it’s kind of an epiphany to me 
if I’m now correct in my understanding: Jmol to JSmol was not a translation of 
Java to Javascript. Rather the process brought Jmol (Java) under a JavaScript 
blanket. If we are woking outside this blanket, we speak common JavaScript. If 
we move under this blanket (e.g. getPropertyAsJavaObject), then inside this 
object Java is alive and well, albeit as Java commands expressed in JavaScript 
object notation.

Hence in Jmol.getPropertyAsJavaObject(jmolApplet0,"moleculeInfo.mf").get(0), I 
am using pure JavaScript, but I’m allowed to use that Java get(0) because I’m 
under the blanket. In other words, there is no difference between Jmol and 
JSmol other than the fact that in JSmol all the Java code is living under this 
blanket.

Am I even close to the truth here?

Otis

--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to