> function sync2() {
> var syncing = document.getElementById("drive").checked
> var s = (syncing ? 'sync * off;sync . on;sync jmolAppletB on;sync jmolAppletB
> "set syncMouse on;set syncScript off";': 'sync * off') jmolScript(s,
> "A"); }
>
> So the script is being sent to jmolAppletA, and from there the sync ON
> message is sent just to jmolAppletB. Thus, only those two are
> synchronized.
>
> For testing, you might want to substitute js/JSmol.full.js for JSmol.min.js
> -- that's the same but uncompressed.
Hi Bob,
I am using 14.1.6_dev 2014-1-10 and JSmol.full.js. I copied your script (using
my jmol names):
function sync() {
var syncing = document.getElementById("drive").checked;
var s = (syncing ? 'sync * off; sync . on; sync jmolApplet2 on; sync
jmolApplet2 "set syncMouse on"; syncScript off;' : 'sync * off');
jmolScript(s, "jmolApplet1");
}
but get an error "TypeError: applet is undefined referring back to
JSmol.full.js line 13548. (something about checkDeferred(script)??)
I am creating the "applets" using jmolApplet1 = Jmol.getApplet("jmolApplet1",
Info1); and jmolApplet2 = Jmol.getApplet("jmolApplet2", Info2);.
Is there something I missed here?
Thanks, Rick
--------------------------------------
Dr. Richard Spinney
Department of Chemistry and Biochemistry
The Ohio State University
120A Celeste Laboratory
120 West 18th Ave
Columbus, Ohio 43210
email:
[email protected]<mailto:[email protected]>
Phone: (614) 247 - 6847
Fax: (614) 292 - 1685
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users