|
 |
aspx thread: refresh the page every minut
Message #1 by nahid.mohammadi@b... on Fri, 10 May 2002 06:14:05
|
|
Hi
My goal is to build a web application that read the a table in the
database and refresh the page in clieny machine for every minut.I wonder
if it is possible to refresh a page every minut automatically?
Any idea helps
thanks
Nahid
Message #2 by "Nimai Chandra Gorai" <Nimai@i...> on Fri, 10 May 2002 10:47:47 +0530
|
|
Use meta tags for doing the same
eg.
<meta http-equiv=3D"refresh" content=3D"10">
10 =3D how many seconds the browser should wait before it refreshes
Bye and Take Care,
Nimai
-----Original Message-----
From: nahid.mohammadi@b... [mailto:nahid.mohammadi@b...]
Sent: Friday, May 10, 2002 11:44 AM
To: ASP+
Subject: [aspx] refresh the page every minut
Hi
My goal is to build a web application that read the a table in the
database and refresh the page in clieny machine for every minut.I wonder
if it is possible to refresh a page every minut automatically?
Any idea helps
thanks
Nahid
Message #3 by "Robert Horn" <robertho@m...> on Fri, 10 May 2002 15:28:16 +1000
|
|
Add the following to the bottom of your page:
<script language=Jscript>
setInterval("location.href='Pagename.aspx'",60000)
</Script>
That will load the page Pagename.aspx every 60 seconds.
Robert
----- Original Message -----
From: <nahid.mohammadi@b...>
To: "ASP+" <aspx@p...>
Sent: Friday, May 10, 2002 4:14 PM
Subject: [aspx] refresh the page every minut
> Hi
>
> My goal is to build a web application that read the a table in the
> database and refresh the page in clieny machine for every minut.I wonder
> if it is possible to refresh a page every minut automatically?
>
> Any idea helps
>
> thanks
>
> Nahid
Message #4 by "Mingkun Goh" <mangokun@h...> on Thu, 16 May 2002 03:24:56
|
|
Put the sample code below in a HTML page, which will display the current
date and time, and refresh itself every second.
<script language=javascript>
setTimeout('location.reload()',1000)
document.write(new Date)
</script>
What you need in your web page is just this line:
setTimeout('location.reload()',1000)
Change the 2nd parameter(in milliseconds) to your own page refresh
interval.
1 minute = 60 seconds = 60000 milliseconds
|
|
 |