Jaim,

I see what you're seeing with Safari.

Just to add a data point to the discussion, when I use the location box to 
navigate to another site (e.g. Google.com), the back button does force a reload 
of JSmol on your page.

When I try this same location box approach with:

http://proteopedia.org/wiki/index.php/Proteopedia:Structure_Index

The back button still does not reload JSmol - i.e. unlike going to Google.com

Maybe within the same domain, Safari simply goes to cache without supporting 
files when you use the back button???

You could prevent browser page caching with meta tags. You can also do this 
with JavaScript by defining an empty unbeforeunload function. I was never sure 
if either of these affected supporting files, however. I'm not sure you want to 
go this route. JSmol in user cache is a big plus.

Otis 
--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com




On Jan 30, 2014, at 3:32 AM, Jaime Prilusky <jaime.prilu...@weizmann.ac.il> 
wrote:

> Is there a way to force loading JSmol when loading/rendering a page? JQuery 
> should be able to do this. 
> 
> This is why we might need to start with a fresh loaded JSmol: When clicking a 
> ‘back to previous page’ button on On Mac 10.9.1, Safari 7.0.1, JSmol renders 
> non-operational. On Firefox 26.0, same Mac, it works Ok.
> 
> To test (better than the previous explanation):
> 
> 1. go to http://proteopedia.org/w/3rec
> 
> 2. verify if JSmol is working, ie mouse rotates model, zooms, etc.
> 
> 3. go to another page by clicking a link, like ‘About Proteopedia’ in the 
> bottom mid section
> 
> 4. click on the browser’s ‘back to previous page’ button to display again the 
> page 3rec
> 
> 5. verify if JSmol is working, ie mouse rotates model, zooms, etc.
> 
> The main difference is that Firefox actually reloads JSmol on page back. 
> Safari simply tries to work with what’s available, rendering a broken applet.
> 
> Jaim
> ------------------------------------------------------------------------------
> WatchGuard Dimension instantly turns raw network data into actionable 
> security intelligence. It gives you real-time visual feedback on key
> security issues and trends.  Skip the complicated setup - simply import
> a virtual appliance and go from zero to informed in seconds.
> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to