473,386 Members | 1,801 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.

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 40159
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
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
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.