PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
IBM developerWorks
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old August 7th, 2002, 05:27 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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?

Reply With Quote
  #2  
Old August 7th, 2002, 06:48 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
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

Reply With Quote
  #3  
Old August 8th, 2002, 01:38 PM
Laxersaz Laxersaz is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Neuss, NRW, Germany
Posts: 21 Laxersaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Laxersaz Send a message via AIM to Laxersaz
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.

Reply With Quote
  #4  
Old August 8th, 2002, 01:39 PM
seiya seiya is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: NYC, NY, USA
Posts: 45 seiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to seiya
RE: page refresh on back button

I think it is not possible to control the buttons in your browser...

Reply With Quote
  #5  
Old August 8th, 2002, 01:50 PM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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

Reply With Quote
  #6  
Old August 8th, 2002, 03:09 PM
greggory greggory is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Reims, France
Posts: 82 greggory User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > page refresh on back button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway