Dear users,

In adapting old pages to JSmol, one of the rare issues is when they 
were using 
  jmolSetTarget('all')

The adapter Jmol2.js library does not cater for this case.
I am looking for a conversion function, other than to hard-code the 
calls in the pages. For example, I have a single checkbox that acts 
on all applets in a page. Number of applets may vary.

Q: what is the way to retrieve the set (array?) of all Jmol Oblects 
in the page?
Following some hints in Jmol2.js and elsewhere, I tried both 
 _jmol.applets.length
and
  Jmol._Applet.length
without any success

With that pinter I could implement a recursive script function for 
all objects, which would at least allow to do the trick even if not 
straightforward.

Thanks


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to