[FX.php List] [OFF] Reload page in Safari after back button?

Bob Patin bob at patin.com
Thu Mar 1 05:21:27 MST 2012


Joel,

I never have found a solution for this nagging problem; no matter whether you tell users not to use the BACK button, they do it anyway… 

I was thinking about setting a session var that would keep track of where the user is *supposed* to be, but when you use the BACK button it doesn't actually reload the page, so there's no way to look at the session var and see if action needs to be taken.

My question would be this: is there anything, PHP or Javascript, that would be triggered when someone arrives at a page using the BACK button?

If you solve it you'll be my hero--wait, you're already my hero!

Bob



Bob Patin
Longterm Solutions LLC
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
FileMaker 9, 10 & 11 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--
Twitter: bobpatin
Google+: http://www.longtermsolutions.com/plus
AIM: longterm1954
iChat: bobpatin
--
Expert FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker

On Feb 29, 2012, at 5:11 PM, Joel Shapiro wrote:

> Hi all!
> 
> Safari, as far as I know, is the only browser that doesn't automatically reload a page after clicking the Back button.  (e.g.: Echo some $_SESSION vars on page1, update those vars on page2, then click the Back button.  In Safari, page1 still shows the original vars until you click Reload.  All other browsers show the updated vars as soon as you click Back)
> 
> I found one fix: "Setting onunload="" in the body-tag causes Safari to invalidate the page and reload it upon window.history.back();", 
> but I'm wondering how other people here deal with this.
> 
> Thoughts?
> 
> http://stackoverflow.com/questions/5297122/preventing-cache-on-back-button-in-safari-5/5305905#5305905
> 
> Thanks,
> -Joel_______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list