473,386 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Auto refresh

I'm trying to create a web page that will refresh each time someone
visits so they always see an updated version. I've tried using

<META HTTP-EQUIV="refresh" CONTENT=";URL=index.html">

in the HTML code, but it doesn't seem to work. If I add time value
after CONTENT= it will refresh after that time, but I only want the
page to refresh once.

Any help would be appreciated.

Will.
Jul 20 '05 #1
3 14970
gw********@hotmail.com (Will Appleby) wrote in message news:<7b**************************@posting.google. com>...
I'm trying to create a web page that will refresh each time someone
visits so they always see an updated version.
This happens anyway - browsers ask the server the timestamp of its
version, compare it with the timestamp of the version in the cache,
and download the new one if necessary.
I've tried using

<META HTTP-EQUIV="refresh" CONTENT=";URL=index.html">


That won't work for this purpose. And don't use that code anyway, it
breaks the back button.

--- Stephen Morley ---
http://www.safalra.com
Jul 20 '05 #2
Will Appleby wrote:
I'm trying to create a web page that will refresh each time someone
visits so they always see an updated version.


You don't do that with HTML. You do that by having your server respond to
requests with the correct HTTP headers.

<URL:http://www.mnot.net/cache_docs/>

--
Jim Dabell

Jul 20 '05 #3
On 4 Nov 2003 03:12:07 -0800, gw********@hotmail.com (Will Appleby)
wrote:
I'm trying to create a web page that will refresh each time someone
visits so they always see an updated version. I've tried using

<META HTTP-EQUIV="refresh" CONTENT=";URL=index.html">

in the HTML code, but it doesn't seem to work. If I add time value
after CONTENT= it will refresh after that time, but I only want the
page to refresh once.

Any help would be appreciated.

Will.


I've always had good results with

<META HTTP-EQUIV="Expires" CONTENT="-1">

Obviously, the other posters here disagree with using META tags for
this purpose, but if you cannot access your HTTP headers, it seems to
me to be the next best thing....
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lew | last post by:
Hi all, I'm trying to create a page that has a user-selectable page auto-refresh option (IE 5.5). Essentially, it's a page that contains a checkbox, when the user checks the checkbox, I'd like...
2
by: MattB | last post by:
I have a page I've migrated from HTML to asp.net that would auto-refresh every 30 seconds. I did this by putting the following in the <head> section: <meta name="refresh" content="30"> But now...
7
by: Brian | last post by:
hello, I am looking for a way to auto refresh a web page that I created, but also let the user choose to stop the auto refresh. I can not figure out how to stop the auto refresh. Any help would...
3
by: david | last post by:
I do not have the experience with it. For example, update the data in the ASP form every minute by retrieving data from database. Or do you have other methods? Thank you for any advice and...
4
by: jack-e | last post by:
How do I auto refresh a page a particular time of the day?
3
by: tinuananster | last post by:
Hi, I need to auto refresh a page after a specific time interval. When the page is accessed the first time, a request parameter is null and hence it gets redirected to a welcome page (static...
3
by: lezzo | last post by:
Hi Guys, I am new to this forum and find very interesting. I need your help in one of the script. I got a MySQL table bid_amount, and i want that if some new data comes in this table and...
1
by: BibhuAshish | last post by:
hi, I have designed a jsp page. This jsp is able to auto refresh after 5 second. But i want after 5th times of auto refreshment the table present inside the body should change. Can anybody...
2
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hi I have a web page that has a TreeView on it. If I DONT'T expand the TreeView nodes, the auto refresh works nicely: my page gets refreshed every minute. As soon as I expand a node on the...
6
by: Peter | last post by:
I have a APS.NET 3.5 webpage which calls a web service. What I need is to update this page automatically when a value changes in the webservice, does anyone have an example? Thank You ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.