Re: [Jmol-users] JSmol on Safari Mac Version 9.0.3 (11601.4.4)

2016-02-11 Thread Otis Rothenberger
It turns out that there is a JQuery solution to the Safari back/forward browser 
cache issue:

$(window).bind("pageshow", function(event) {
if (event.originalEvent.persisted) {
window.location.reload() 
}
});

http://stackoverflow.com/questions/8788802/prevent-safari-loading-from-cache-when-back-button-is-clicked

This only brings Safari to FF/Chrome behavior - i.e. page default reload on 
back button.

I really need to put some time in dealing with the local storage saved state 
restore issues rather than just saved molfile re-load. It would be nice to be 
able to restore state with this approach after  back button or return from a 
subsequent page.

Otis


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

> On Feb 11, 2016, at 5:24 PM, Otis Rothenberger  wrote:
> 
> Very Interesting!
> 
> On Mac, FF and Chrome reload the JSmol page on back button. I mean fresh 
> reload! You get  a default model reload. I was missing this because of my 
> local storage approach. The back button was reloading the page with FF and 
> Chrome, but the reload was loading my last model via LS. I only now picked up 
> on it because I implemented Angel ’s neat JSmol action load thingy. I started 
> using my LS approach because of a Safari problem, but it solved a problem for 
> FF and Chrome that I did not know I had - i.e. default reload on back button.
> 
> Otis
> 
> 
> --


--
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


Re: [Jmol-users] JSmol on Safari Mac Version 9.0.3 (11601.4.4)

2016-02-11 Thread Otis Rothenberger
Very Interesting!

On Mac, FF and Chrome reload the JSmol page on back button. I mean fresh 
reload! You get  a default model reload. I was missing this because of my local 
storage approach. The back button was reloading the page with FF and Chrome, 
but the reload was loading my last model via LS. I only now picked up on it 
because I implemented Angel ’s neat JSmol action load thingy. I started using 
my LS approach because of a Safari problem, but it solved a problem for FF and 
Chrome that I did not know I had - i.e. default reload on back button.

Otis


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

> On Feb 11, 2016, at 4:38 PM, Rolf Huehne  wrote:
> 
> On 02/11/2016 07:41 PM, Jaime  Prilusky 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
>> 
> Safari seems to have a problem contacting the EBI server during the 
> reload of the page:
> 
>  Safari 7 error message -
> Failed to load resource: the server responded with a status of 404 (Not 
> Found) http://www.ebi.ac.uk/pdbe/api/pdb/entry/publications/1dnn 
> 
> -
> 
> Does the URL get mixed up in Safari?
> 
> Regards,
> Rolf
> -- 
> 
> Rolf Huehne
> Postdoc
> 
> Leibniz Institute on Aging - Fritz Lipmann Institute (FLI)
> Beutenbergstrasse 11
> 07745 Jena, Germany
> 
> Phone:   +49 3641 65 6205
> Fax: +49 3641 65 6210
> E-Mail:  rolf.hue...@leibniz-fli.de 
> Website: http://www.leibniz-fli.de 
> 
>   Scientific Director: Prof. Dr. K. Lenhard Rudolph
>Head of Administration: Dr. Daniele Barthel
> Chairman of Board of Trustees: Burkhard Zinner
> 
> VAT No: DE 153 925 464
> Register of Associations: No. 230296, Amtsgericht Jena
> Tax Number: 162/141/08228
> 
> 
> --
> 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


Re: [Jmol-users] JSmol on Safari Mac Version 9.0.3 (11601.4.4)

2016-02-11 Thread Rolf Huehne
On 02/11/2016 07:41 PM, Jaime  Prilusky 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
>
Safari seems to have a problem contacting the EBI server during the 
reload of the page:

 Safari 7 error message -
Failed to load resource: the server responded with a status of 404 (Not 
Found) http://www.ebi.ac.uk/pdbe/api/pdb/entry/publications/1dnn
-

Does the URL get mixed up in Safari?

Regards,
Rolf
-- 

Rolf Huehne
Postdoc

Leibniz Institute on Aging - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany

Phone:   +49 3641 65 6205
Fax: +49 3641 65 6210
E-Mail:  rolf.hue...@leibniz-fli.de
Website: http://www.leibniz-fli.de

   Scientific Director: Prof. Dr. K. Lenhard Rudolph
Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Burkhard Zinner

VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228


--
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


Re: [Jmol-users] JSmol on Safari Mac Version 9.0.3 (11601.4.4)

2016-02-11 Thread Otis Rothenberger
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  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  
>> 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


Re: [Jmol-users] JSmol on Safari Mac Version 9.0.3 (11601.4.4)

2016-02-11 Thread Philip Bays
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  
> 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


[Jmol-users] JSmol on Safari Mac Version 9.0.3 (11601.4.4)

2016-02-11 Thread Jaime Prilusky
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