![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| 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: * 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 |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#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! |
|
|
|
| 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 |
|
|
#2 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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." |
|
|
|
|
|
#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! |
|
|
|
|
|
#5 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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." |
|
|
|
|
|
#7 (permalink) |
|
Retired
|
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 ?>
__________________
|
|
|
|
![]() |
| Thread Tools | |
|
|