Tim points out that there are memory bugs (apparently) in the Mac 
implementation of Java that prevent this JavaScript method from being 
generally useful. That's disappointing but not entirely unexpected. So I 
won't claim to have solved this problem. But I have no time to work on 
it now. If someone with a Mac wants to play with compare2.htm and track 
down where the problem is, that would be great.

Feature request.

Bob


Timothy Driscoll wrote:

> On Aug 5, 2007, at 11:56 PM, Bob Hanson wrote:
>
>> Eric Martz wrote:
>>
>>> I surmise that it is still not possible to make the mouse actions
>>> (rotate, zoom at least) in one jmol applet propagate to other
>>> specified jmol applets on the same web page, thereby synchronizing
>>> their mouse-controlled movements. Again, I'd like to advocate for  
>>> this.
>>>
>>>
>> I think it is possible.
>>
>>> In Chime, synchronization could be controlled only at embed time
>>> (equivalent to <applet> parameters for Jmol). First, one needed
>>> "sendmouse=true" and then one needed "target=[chime_name]" for each
>>> Chime whose movements are to be controlled by the one containing
>>> these embed tags. I have seen pages with six Chimes, where all
>>> followed the mouse actions in any one. Amazing to behold!
>>>
>>>
>>>
>> This, of course, is rather inflexible. With Jmol, synchronization is
>> carried out using a JavaScript timer:
>>
>> In this way, one has far more control over the outcome than what Chime
>> could do (I think). True, it's a bit more involved, but it  registers 
>> ANY
>> orientation change (spinning, for example), not just those generated
>> with the mouse. I think an argument could be made that this is exactly
>> what JavaScript is for.
>>
>> See http://chemapps.stolaf.edu/jmol/docs/examples-11/compare2.htm
>>
>> I'm interested if this works on all browsers. I only tested it on a PC
>> running Windows with Firefox.
>>
>
> hi Bob,
>
> Safari 2.0.4 (OS X 10.4.10):
> the above page crashes after I press 'Load PDB files' with the  
> following error:
>
> FileManager opening http://chemapps.stolaf.edu/jmol/docs/examples-11/ 
> data/1crn.pdb
> Invalid memory access of location 00000000 eip=9ba39e45
> Aug  6 07:14:20 hc6521f0e /Applications/Safari.app/Contents/MacOS/ 
> Safari: An unexpected Java error has been detected by HotSpot Virtual  
> Machine.
>
>
> Firefox 1.5.0.11:
> everything appears to load properly, and the left structure  
> background turns blue, but then Firefox freezes completely.  no error  
> messages.
>
>
> I'm running Java 1.5.0_07-164.
>
>
> hope that helps!
>
> tim



-- 
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to