Dear Josh,

Thanks for sharing!

It appears to me that you are writing Jmol into a pre-existing HTML 
division. To unload, you are changing the contents of that division 
to nothing (an empty character string).

This is what I do in my Jmol Tutorial-Authoring Template (JTAT, 
http://bioinformatics.org/jmol-tutorials), except that I never 
"unload"; I simply replace one Jmol with another (or multiple Jmols 
up to 4). There I have found that java memory gradually gets consumed 
(after many page loads and division loads) in some browsers. The 
symptom is that the molecule never appears in Jmol. This happens 
after Jmol's menu About Jmol, memory usage, reports total equal to 
maximum. I am working to try to discover what exactly causes this 
problem. Closing the browser (which stops java) and restarting it is 
the only way I've found to clear java memory.

Have you ever seen this java memory problem?

Here are a few suggestions for your website:

1. In addition to the controls you already have below the Jmols, a 
checkbox to synchronize mouse-directed rotations and zooms would be 
cool. See "sync" in the manual. I use "sync * on" and "sync * off" (* 
= all Jmols) together with "set syncScript false; set syncMouse true;".

2. Instead of the colored squares, how about eliminating the squares 
and simply coloring the text of the element names? Some people may 
click your "buttons" and wonder what they are supposed to do. At 
first I thought they might make the element disappear, or label it.

3. Style margins would be nice to avoid having your text against the 
left side of the window.

-Eric

At 1/29/08, you wrote:
>Due to some still unresolved problems with jmol crashing users browsers
>(btw, this appears to be a *java* bug), we wanted users to be able to
>decide whether to launch jmol. Using javascript we dynamically load and
>unload the applet into and from the page without a page reload. Check it
>out here to see how it was done:
>
>
>http://erowid.org/psychoactives/chemistry/chemistry_compare_3d.php
>
>
>cheers,
>
>-j
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Jmol-users mailing list
>Jmol-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/jmol-users

----
Eric Martz, Professor Emeritus, Dept Microbiology
University of Massachusetts, Amherst MA US
http://www.umass.edu/molvis/martz


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to