It turns out the problem is solved if you allow more than one driver. I 
have now implemented this, and it seems to work great. No switching 
necessary. Just the simple command:

 jmolScript("sync *")


The problem I am having now is that synchronization is occuring across 
different web pages! But I think I can fix that... (Please do NOT 
request that Jmol be able to syncronize between two web pages!)

Bob

Jason Persampieri wrote:

>     >The slave applet is always one step behind the master applet. This is
>     >very obvious after zoom changes with the mouse scroll wheel. It is
>     >less obvious with rotations because of the very small difference, but
>     >the difference is still there.
>     >
>     >
>     >
>     There should be a slight delay, provided the slave makes it up to the
>     master applet after each move.
>     But the problem with the zoom is that there's a bug that doesn't pass
>     that change on.
>     So that's not a major problem. Just a minor bug.
>
>
> In addition to fixing this bug (which may be a minor bug, but is 
> obvious enough that I can't subject my users to it), I have one other 
> recommendation.
>
> The javascript 'onmouseover' event is notoriously flaky.  Can the 
> applet actually look for mouse-driven orientation changes, then apply 
> those changes to a list of 'slave' applets?  The API would be as 
> simple as
>
> _jmolGetApplet("A").setSlave(slaveAppletName)
> _jmolGetApplet("A").removeSlave(slaveAppletName)
>
> Because the 'slave' synchronization would only trigger on actual 
> mouse-events, dual-syncing should work fine.
>
> _jmolGetApplet("A").setSlave("B")
> _jmolGetApplet("B").setSlave("A")
>
> _jason
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc.
>Still grepping through log files to find problems?  Stop.
>Now Search log events and configuration files using AJAX and a browser.
>Download your FREE copy of Splunk now >>  http://get.splunk.com/
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
Robert M. Hanson
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



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to