I’ve noticed this for quite some time with the browser back button. I think 
it’s a browser page cache issue. The browser is not communicating with the 
server after a back button click. Maybe Bob can do something to defeat this in 
JSmol, but I think you need control of your server’s http headers to defeat the 
browser back button page cache problem.

My solution to the problem was to return to the JSmol page via a reload link of 
some type in any subsequent page. I maintain the state of the original JSmol 
page in browser local storage. I have a special local storage memory location 
that stores the current model when I leave the page. If this location is not 
null (i.e. on return to JSmol from a subsequent page), then JSmol loads from 
this location - not my default.

I’m currently using molfiles, but this concept should work with state. I just 
have a really hard time working with state files. Saving/Restoring them 
involves special character problems that I have not learned how to deal with 
yet.

Otis

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

> On Feb 11, 2016, at 3:48 PM, Philip Bays <pb...@saintmarys.edu> wrote:
> 
> I confirm this behavior.  You can go back and forth if they are loaded in 
> tabs or different pages, but not via history.  Same Safari version.  In 
> Firefox and Chrome, the applet reloads on return.
> 
> 
>> On Feb 11, 2016, at 1:41 PM, Jaime Prilusky <jaime.prilu...@weizmann.ac.il> 
>> wrote:
>> 
>> It seems that JSmol gets unloaded when a page gets out of focus, by flipping 
>> between pages, on Safari Mac Version 9.0.3 (11601.4.4).
>> 
>> 1. Open any page on Safari  Mac (tested on Version 9.0.3)
>> 
>> 2. Now open a page with JSMol on it, i.e. http://proteopedia.org/w/1dnn
>> 
>> 3. Go to the previous page: History->Back or click on the ’Show the previous 
>> page’ arrow 
>> 
>> 4. Go to the JSmol page: History->Forward or click on the ‘Show the next 
>> page’ arrow
>> 
>> JSmol is not longer reponsive.
>> 
>> This doesn’t happen on Chrome or Firefox on Mac. Doesn’t happen either on 
>> Safari when a page loose focus by opening another window on the same browser.
>> 
>> Jaim
>> 
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> Philip Bays
> Emeritus Professor of Chemistry
> Saint Mary's College
> Notre Dame, IN 46556
> pb...@saintmarys.edu
> 
> 
> 
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to