Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Related Forum Posts
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Member Message

kaulbr
Joined: Mar 15, 2006
# Posts: 275

View the profile for kaulbr Send kaulbr a private message

Posted: 07/27/2006 06:30 am
Edit Message Delete Message Reply to this message

Hello all. I'm maintaining a site for a client that is having a convention for a week. During that week, we will have each days agenda online and then as those events happen (speeches, presentations, etc.) those events will be viewable online. The problem is though that people who come to the site multiple times always see the original version of the page. I have to instruct them to click refresh in their browser window to see any recent changes/additions to the page. Sometimes that doesn't even do it. They have to do a "force refresh" (ctrl+F5). Anyways, rather than explaining all this on the web page, is there a way to just have a link that says "Refresh Page" and when they click on it, it will do a force refresh. Or, is there a better way to accomplish this?? Any help is appreciated.



bhartzer
Staff
Joined: Jun 08, 2000
# Posts: 7035

View the profile for bhartzer Send bhartzer a private message

Posted: 07/27/2006 01:32 pm
Edit Message Delete Message Reply to this message

You can do this with a JavaScript link. Here's the code to do it:



Code: [copy]







kaulbr
Joined: Mar 15, 2006
# Posts: 275

View the profile for kaulbr Send kaulbr a private message

Posted: 07/27/2006 01:47 pm
Edit Message Delete Message Reply to this message

Thanks a ton bhartzer.

I noticed on PCs sometimes even after clicking the refresh button that you are still seeing the old version. People would have to click alt+refresh. Would I come across this same problem with your refresh link?



bhartzer
Staff
Joined: Jun 08, 2000
# Posts: 7035

View the profile for bhartzer Send bhartzer a private message

Posted: 07/27/2006 02:48 pm
Edit Message Delete Message Reply to this message

This refresh code essentially does the same thing as the alt+refresh. It just makes it easier and puts it in the forum of a link.

Keep in mind that there are a lot of ISPs out there (even major ones like Comcast and Earthlink) that cache pages on the ISP level and not the browser level. So, the users aren't able to refresh the page even though their browser refreshes the page. There's nothing you can do about that.

Another thing you can do is put the no cache code on the page to try and stop the web browser from caching the page at all so you don't run into anyone having to refresh the page.



kaulbr
Joined: Mar 15, 2006
# Posts: 275

View the profile for kaulbr Send kaulbr a private message

Posted: 07/28/2006 06:08 am
Edit Message Delete Message Reply to this message

What would that code be? Does it work across all browsers?



bhartzer
Staff
Joined: Jun 08, 2000
# Posts: 7035

View the profile for bhartzer Send bhartzer a private message

Posted: 07/28/2006 06:15 am
Edit Message Delete Message Reply to this message

To stop a browser from caching you'll have to read this.

Or, if you want, just do this search and look for it.



kaulbr
Joined: Mar 15, 2006
# Posts: 275

View the profile for kaulbr Send kaulbr a private message

Posted: 07/28/2006 08:58 am
Edit Message Delete Message Reply to this message

K, thanks for all your help.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions