yes it could be a problem loading. Are you using
Jmol.setAppletSync = function(applets, commands, isJmolJSV) {
Jmol._syncedApplets = applets; // an array of appletIDs
Jmol._syncedCommands = commands; // an array of commands; one or more
may be null
Jmol._syncedReady = {};
Jmol._isJmolJSVSync = isJmolJSV;
}
There's no equivalent function in the old Jmol.js. Jmol.setAppletSync let's
you schedule scripts that run only when BOTH applets are ready, ensuring
that no sync communication happens before everything is ready. I didn't
need that on the sync2 page because no syncing is done there until the user
clicks. But I use it at
http://chemapps.stolaf.edu/jmol/jspecview/jsvtest.htm, where it looks like
this:
jsvApplet = "jsvApplet";jmolApplet = "jmolApplet";// applet ids and
commands to give only when all applets are ready;// also sets up a
script sync pathway for Jmol/JSpecView.Jmol.setAppletSync([jsvApplet,
jmolApplet], ["load acetophenone.jdx", null], true);
You would use "false" for that third parameter, since it's not a
Jmol/JSpecView connection that you are using.
Bob
On Thu, Sep 19, 2013 at 2:42 AM, Angel Herráez <[email protected]> wrote:
> El 18 Sep 2013 a las 14:32, Robert Hanson escribió:
> > I'll look into that. You are seeing the problem also at
> > http://chemapps.stolaf.edu/jmol/jsmol/sync2.htm ?
>
> No, no problem there.
> I was thinking it's something in my script. Everything before the
> sync is working, just no active sync.
> Could it be a problem of generating-loading the two Jmols at a time
> and the sync command is being tried ahead of time?
> Although the Java mode has the same problem -- and it did not before
> I updated to JSO method and 13.3.
>
> Oh, darn, the very same page is working fine today! Well, in HTML5
> mode but not in Java mode. Who knows?
>
> Then I opened the console and issued
> sync * on;
> sync * "set syncMouse true;set syncScript true";
>
> and it does not work either for the Java mode.
> Can you add the use=Java option to
> http://chemapps.stolaf.edu/jmol/jsmol/sync2.htm
> ?
>
> Thanks
>
>
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
> SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Larson-Anderson Professor 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
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users