473,695 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make a web page getting refreshed automatically

How to make a web page getting refreshed after a given time interval automatically.
HTML Code plz.

Tx
Ajay
Jul 20 '05 #1
37 12734
aj************* @yahoo.com (ajay) wrote in
news:2a******** *************** ***@posting.goo gle.com:
How to make a web page getting refreshed after a given time interval
automatically. HTML Code plz.

Tx
Ajay


You have one of two ways....

You can either use javascript to set a timeout such as:-
Refresh = window.setTimeO ut
("window.locati on.href='http://www.webforumz.c om'",3000)
would give a 3 second delay

or the prefered method would be to use a meta refresh such as:-
<meta http-equiv="refresh" content="3;url= http://www.webforumz.c om">
to achieve the same effect.

Hope this helps

--
Robert Collyer
www.webforumz.com
Free Web Design and Development Help, Discussions, tips and Critique!
ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !
Jul 20 '05 #2
ajay wrote:
How to make a web page getting refreshed after a given time interval automatically.
HTML Code plz.


You'd better have an exceptionally good reason to want to do this, it
can be quite annoying for the user to have a page continually refresh
while they're trying to read it. It's better to let the user refresh it
when they're ready.

--
Lachlan Hunt
http://www.lachy.id.au/

Please direct all spam to abuse@localhost
Thank you.
Jul 20 '05 #3
Lachlan Hunt <la**********@l achy.id.au.inva lid> wrote in
news:Kj******** ********@news-server.bigpond. net.au:
ajay wrote:
How to make a web page getting refreshed after a given time interval
automatically. HTML Code plz.


You'd better have an exceptionally good reason to want to do this,
it
can be quite annoying for the user to have a page continually refresh
while they're trying to read it. It's better to let the user refresh
it when they're ready.


It realy depends on the need?

Surely a forum's 'active topics' page has a very legitimate reason to
refresh every x seconds (or minutes)

There are good and bad applications for auto refreshing.

--
Robert Collyer
www.webforumz.com
Free Web Design and Development Help, Discussions, tips and Critique!
ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !
Jul 20 '05 #4
Rob Collyer <we*******@webf orumz.com> writes:
Lachlan Hunt <la**********@l achy.id.au.inva lid> wrote in
You'd better have an exceptionally good reason to want to do this,
it can be quite annoying for the user to have a page continually
refresh while they're trying to read it. It's better to let the
user refresh it when they're ready.
It realy depends on the need?

Surely a forum's 'active topics' page has a very legitimate reason to
refresh every x seconds (or minutes)


Seconds! No. Minutes, possibly, but even then probably not. At least
not by default (a web application I use has an option to refresh the
summary page at various time intervals, but it defaults to _not_)

If I want to know what the active topics are now, as opposed to last
minute (and it'd have to be a fairly high traffic forum for even that
to make a difference) then I'll refresh the page myself.
There are good and bad applications for auto refreshing.


True. If the user specifically asks for it, fine. If it happens
without their consent, not so good, especially since most browsers (IE
does, but it's in an obscure part of the settings) don't offer a way
to disable it.

--
Chris
Jul 20 '05 #5
Chris Morris <c.********@dur ham.ac.uk> wrote in
news:87******** ****@dinopsis.d ur.ac.uk:
Rob Collyer <we*******@webf orumz.com> writes:
Lachlan Hunt <la**********@l achy.id.au.inva lid> wrote in
> You'd better have an exceptionally good reason to want to do this,
> it can be quite annoying for the user to have a page continually
> refresh while they're trying to read it. It's better to let the
> user refresh it when they're ready.


It realy depends on the need?

Surely a forum's 'active topics' page has a very legitimate reason to
refresh every x seconds (or minutes)


Seconds! No. Minutes, possibly, but even then probably not. At least
not by default (a web application I use has an option to refresh the
summary page at various time intervals, but it defaults to _not_)

If I want to know what the active topics are now, as opposed to last
minute (and it'd have to be a fairly high traffic forum for even that
to make a difference) then I'll refresh the page myself.
There are good and bad applications for auto refreshing.


True. If the user specifically asks for it, fine. If it happens
without their consent, not so good, especially since most browsers (IE
does, but it's in an obscure part of the settings) don't offer a way
to disable it.


I totally agree..... our forums also default to not, but it's a tool the
forums provide shoulkd the user need it!!

I dont think a site should ever force a refresh upon the user unless the
application requires it... such asa server side scripting based chat,
that refreshes every few secs (and boy... everyone hates those, right?)

--
Robert Collyer
www.webforumz.com
Free Web Design and Development Help, Discussions, tips and Critique!
ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !
Jul 20 '05 #6
On Tue, 20 Jul 2004 10:50:09 +0000 (UTC), Rob Collyer
<we*******@webf orumz.com> wrote:

I totally agree..... our forums also default to not, but it's a tool the
forums provide shoulkd the user need it!!


Opera has an option to set automatic reload. I don't recall Mozilla,
perhaps it as well. I'd prefer to set it in the browser than through the
page.
Jul 20 '05 #7
DC
Neal wrote:
On Tue, 20 Jul 2004 10:50:09 +0000 (UTC), Rob Collyer
<we*******@web forumz.com> wrote:
I totally agree..... our forums also default to not, but it's a tool the
forums provide shoulkd the user need it!!

Opera has an option to set automatic reload. I don't recall Mozilla,
perhaps it as well. I'd prefer to set it in the browser than through the
page.

Mozilla's Tab Extensions add this functionality. It is also available
for Firefox.

--
DC Linux RU #10001110110001 11001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Jul 20 '05 #8
Rob Collyer wrote:
aj************* @yahoo.com (ajay) wrote:
How to make a web page getting refreshed after a given time
interval automatically.
You can either use javascript

[snip] or the prefered method would be to use a meta refresh such as:-
<meta http-equiv="refresh"
content="3;url= http://www.webforumz.c om">


Please stop giving such bad advice. Hardly the "preferred method", the
meta http-equiv is particularly hackish, since it is not an "equiv" to
anything. There is no "refresh" header in HTTP, which is a stateless
protocol. A client requests a resource from a server, the server
responds, the communication is then terminated. Period. There is no
way to achieve what the op wants on the server end. That's the only
correct answer.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #9
ajay wrote:
How to make a web page getting refreshed after a given time
interval automatically. HTML Code plz.


There is no (standard) HTML code to do this. HTML is a markup
language, not a programming language. You can, however, configure
certain browsers to automatically reload a page. Opera can do this; I
think Mozilla can as well, but I'm not sure.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #10

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

Similar topics

1
2013
by: abdul bari | last post by:
Hi I have a standard html form which is generated by an XSL sheet. The form data is submitted to the server and is passed on to file.aspx for processing. However file.aspx is refreshed every 5 seconds, when this happens the form data is lost, is there anyway whereby when the page is refreshed the form data remains. I thought with ASP.NET all data is maintained- so a refresh will still maintain the form data. The form data is obtained...
2
2420
vijcbe
by: vijcbe | last post by:
Hello friends, I am having a big time problem. I have a list of textboxes, radios, etc., in a login page for the user to enter his/her data. I have two drop downs, in which the second one is populated according to the first one's choice. I used javascript onchange function to do this. Later in the Js, I get the selected value and pass it to PHP again so that the second dropdown is populated accoding to the first choice. Coding: function...
0
8647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9004
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8864
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4351
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3024
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1986
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.