473,372 Members | 802 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,372 software developers and data experts.

Refresh page every 5 minutes

Can someone tell me how I can get a page(any page) on the Internet to
refresh automatically every 5 minutes. I was thinking along the lines of
having a HTML file on my C-drive with JavaScript to do so. It should be
possible, Right?

I don't know much about JavaScript.

Thanks for the help.
--
Willem Van der Mescht
ho***@absamail.co.za
http://myweb.absamail.co.za/horsy
(If there were more horses around
the world would be more stabilised)
Jul 20 '05 #1
7 40157
Willem wrote on 29 jun 2003 in comp.lang.javascript:
Can someone tell me how I can get a page(any page) on the Internet to
refresh automatically every 5 minutes. I was thinking along the lines of
having a HTML file on my C-drive with JavaScript to do so. It should be
possible, Right?

I don't know much about JavaScript.


you could build a framepage
and refresh a frame (theirs) from another hidden one(yours)

something like:

function reload1(){
document.parent.frame[1].location.reload()
setTimeout("reload1()",300000)
}
setTimeout("reload1()",300000)

not tested !!!

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
It's not javascript and I don't know which browsers support it but
you can put the following in the header:
<meta http-equiv="refresh" content="600">

Mike Johnston
Jul 20 '05 #3
You can also use the meta tag in the head ie. <meta http-equiv="refresh"
content="number of seconds"; url="nextpage.html>"
Jul 20 '05 #4
<html><head><title>a title</title>
<meta http-equiv="refresh" content=300>
</head>
<body>
content
</body>
</html>
-----Original Message-----
From: Willem [SMTP:ho***@absamail.co.za]
Posted At: Sunday, June 29, 2003 10:57 AM
Posted To: comp.lang.javascript
Conversation: Refresh page every 5 minutes
Subject: Refresh page every 5 minutes

Can someone tell me how I can get a page(any page) on the Internet to
refresh automatically every 5 minutes. I was thinking along the lines
of
having a HTML file on my C-drive with JavaScript to do so. It should
be
possible, Right?

I don't know much about JavaScript.

Thanks for the help.
--
Willem Van der Mescht
ho***@absamail.co.za
http://myweb.absamail.co.za/horsy
(If there were more horses around
the world would be more stabilised)


Jul 20 '05 #5
Thanks for the efort you've put in to help me. This is perfect.

Willem Van der Mescht
ho***@absamail.co.za
http://myweb.absamail.co.za/horsy
(If there were more horses around
the world would be more stabilised)

PS Sorry Lasse, didn't mean to use your E-mail address, it was ment to go to
the group.
"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:ad**********@hotpop.com...
"Willem" <ho***@absamail.co.za> writes:
Can someone tell me how I can get a page(any page) on the Internet to
refresh automatically every 5 minutes. I was thinking along the lines of
having a HTML file on my C-drive with JavaScript to do so. It should be
possible, Right?

I don't know much about JavaScript.
Try something like this:
--- reloader.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Reloader!</title>
</head>
<frameset rows="30, *">
<frame name="input" src="reloaderInput.html">
<frame name="page" src="about:blank">
</frameset>
</html>
------

--- reloaderInput.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>input</title>
<script type="text/javascript">
var interval = undefined;
function go(){

parent.frames['page'].location.href=document.forms[0].elements['url'].value; }
function start(form) {
if (interval) {clearInterval(interval);}
var time = parseFloat(form.elements['time'].value);
interval = setInterval(go,Math.floor(time*1000));
go();
}
function stop() {
if (interval) {
clearInterval(interval);
interval=undefined;
}
}
</script>
</head>
<body>
<div>
<form target="page" action="" onsubmit="start(this);return false;">
<label for="url">URL:<input type="text" id="url"></label>
<label for="time">Frequency in seconds<input type="text" id="time"></label> <input type="submit" value="Go!">
<input type="button" value="Stop" onclick="stop()">
</form>
</div>
</body>
</html>
------

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'

Jul 20 '05 #6
On Tue, 01 Jul 2003 20:58:38 +0200, Willem wrote:
Thanks for the efort you've put in to help me. This is perfect.

"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:ad**********@hotpop.com...
"Willem" <ho***@absamail.co.za> writes:
> Can someone tell me how I can get a page(any page) on the Internet to
> refresh automatically every 5 minutes. I was thinking along the lines
> of having a HTML file on my C-drive with JavaScript to do so. It
> should be possible, Right?
>
> I don't know much about JavaScript.


Refreshing an entire page on an interval doesn't require scripting it can
be accomplished with a straight HTML META tag, the exact syntax of which
escapes me at the moment.

<META REFRESH='60000'> Something like that. Anyone have the exact syntax?
--
i.m.
All views, opinions and alleged facts expressed by this tactless moron are
protected by the constitution of the United States of America and should be
taken as good natured and friendly unless specifically stated otherwise.

Jul 20 '05 #7
just try this out



window.setTimeout(' window.location="URL"; ',5000);


:)

Harinda
Jul 6 '06 #8

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

Similar topics

1
by: SPQR | last post by:
Some time ago I set up a webcam at home and a page on my site. Every three minutes the webcam would take a picture of my backyard and ftp it to my site where it was displayed on my webcam page. ...
2
by: Rob Evans | last post by:
I have two websites.... I would like to create a frame on a page on website#1, which shows a page from website#2 Furthermore, I would like the frame on website#1 to refresh every 5 minutes or...
4
by: Alejandro Narancio | last post by:
Hi, i have this situation. One page open another page in a separated instance of the browser, i neek to refresh every five minutes the first page but without take the focus, anybody know how can i...
2
by: Jarson | last post by:
My webserver hosts some on-line reports with live data. I have put an html meta tag to force the client to refresh every 10 minutes so my clients will always show the latest data .. <meta...
0
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem...
10
by: Fred Nelson | last post by:
Hi: I have a VB.NET web application and I need to find a way to cause a page refresh from within my application. Does anyone know how to force the browser to refresh the current page? ...
8
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE...
10
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every...
10
by: Bill Nguyen | last post by:
I would like to be able to get an active browser window to refresh the URL (reload) every 5 minutes. Is it possible in VB.NET? Thanks Bill
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.