Hi all
I need to find out the numer of Jmol objects existing so far in a page.
I was expecting this to work
alert( Jmol._applets.length )
However, it returns 'undefined'. I can see that Jmol._applets does exist as a
Javascript object. Some posts in the users list say it is an array of objects.
Then, how I cannot get its length?
BTW, this works though it's unnecessary convoluted in my opinion
var i=0;
for (j in Jmol._applets) { i++; }
alert(i)
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users