Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 09-25-2006, 05:50 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 20
OS: XP


HTML Code Needed to Automatically Refresh The Page

I run a free online journal with a buddy and we do the html ourselves. This is truly a labor of love!

We would like to find some general or generic html code that can be used so that every time someone clicks on our journal, it automatically refreshes the page. We have many subscribers who write us and say that every time they visit our page to see the new issue, they get the previous issue. So we always write back and ask them to click the “refresh” button which always works.

Can someone provide us with code so that when our page is bookmarked or re-visited, the page refreshes?

Thanks so much!
preitzes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 09-25-2006, 06:09 PM   #2 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

I see what you are saying. Computers use something called a "cache". This saves your computer work by storing files that you visit online so that it doesn't have to redownload them every time you visit the same site. Unfortunately, there is no code to change this. However, you can create a splash page (a page that says enter with a picture or logo). This will show the newest version of the issue every time they click the link on the splash page.
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-25-2006, 06:18 PM   #3 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 20
OS: XP


Thanks!

Someone told me that there was a way to insert code that would trick the browser to think it is a different year, thus always opening the most current version of the page. I guess this was not true?

Thanks again!
preitzes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-25-2006, 06:20 PM   #4 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 20
OS: XP


Oh, one more thing. How do the NY Times and other major Web sites get away with not having a splash page? I never hear of those papers coming up with previous issues.
preitzes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-25-2006, 06:44 PM   #5 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

Quote:
Originally Posted by preitzes View Post
Oh, one more thing. How do the NY Times and other major Web sites get away with not having a splash page? I never hear of those papers coming up with previous issues.
They most likely use advanced coding that imports the new articles (such as php includes). This is kind of like the main page being the spalsh page with the new information built in.
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-25-2006, 08:13 PM   #6 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 20
OS: XP


Thanks so much!
preitzes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-26-2006, 06:29 AM   #7 (permalink)
Retired
 
gamerman0203's Avatar
 
Join Date: Oct 2005
Location: Grand Rapids, MI
Posts: 2,144
OS: XP MCE, Ubuntu Gutsy

My System

Depending on your hosting operating system and if your hosting has ASP or PHP installed, there is a simple line you can put in at the top of the page that makes the browser not cache the page and bring up the fresh version.

In ASP the code is this:
<% Response.expires = 0 %>
but that is only if your hosting with Windows. I just picked this up from a website so I'm not sure if it is right or not, DJ-Zep should be able to validate it:
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
gamerman0203 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-26-2006, 02:51 PM   #8 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 20
OS: XP


Yes, great idea. Thanks Gamerman!
preitzes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 11:40 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85