so close!
Jmol._applets
Note that applets are registered there in more than one way -- by short
name, full name, and object.
But there is a slicker way to do this. You can send a script to one applet
and have it forwarded to all applets using the SYNC command.
http://chemapps.stolaf.edu/jmol/docs/index.htm#sync
On Tue, Oct 14, 2014 at 10:45 AM, Angel Herráez <[email protected]>
wrote:
> 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
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
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