|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
page refresh on back button
Is there a way to force a refresh of a page using php, when a user hits the back button?
|
|
#2
|
|||
|
|||
|
RE: page refresh on back button
This is really a hoaky way to do it but it will work. I got flamed for by last post but I am trying again. use this for your back html.
<a href="http://www.yoursite.com/yourpage.php?refresh="yes"">Go Back</a> Then in your page that you want refreshed try this in between <head> and </head>. <? if ($refresh == "yes") { echo "<META HTTP-EQUIV="refresh" content="0; URL=http://www.samepage.com/thispage.php.com">"; } ?> Go Ahead People FLAME AWAY |
|
#3
|
|||
|
|||
|
RE: page refresh on back button
I guess he meant the browser's back button. As far as I know there is no way to easily detect if the user hit the back button. At least I found no method in the Javascript DOM which would have been the language of choice in that case.
|
|
#4
|
|||
|
|||
|
RE: page refresh on back button
I think it is not possible to control the buttons in your browser...
|
|
#5
|
|||
|
|||
|
RE: page refresh on back button
Well, actually it is possible, you can use VBS or JS, I prefer Js because you can' see any VBS on MacOS
|
|
#6
|
|||
|
|||
|
RE: page refresh on back button
I think U want to keep pages 'fresh', so you just have to force the browser to stop caching them, with some meta tags.
<meta name="Expire" content="Now"> for example |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > page refresh on back button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|