See http://chemapps.stolaf.edu/jmol/jsmol/sync4.htm
Right, the applets do not share memory. It illustrates how to do applet synchronization. The basic idea is that that the SYNC command allows you to send commands around to one or more specific applets from a "master" applet. Then you can just give your commands to that applet, and they will be passed on. On Fri, Jul 24, 2015 at 1:14 AM, Thomas Hrabe <thr...@gmail.com> wrote: > Hi there, > > How can I synchronize multiple JSMol views when I generated them like this > in a for loop: > > var theApplet = Jmol.getAppletHtml(‘theApplet’ + i, RepresentativeView); > applets.push(theApplet); > > In my current understanding, applet[0] will not share memory with > applet[1] and hence not be able to communicate. I tried this, but it didnt > work. > > I use the getAppletHtml method because the applets load on user > interaction rather than at document.loaded > > Thank you for your support, > Thomas > > ------------------------------------------------------------------------------ > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > 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
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users