Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Changing link as a function of time


Message #1 by sg48@y... on Fri, 27 Sep 2002 14:47:27
Alternativley to save on server roundtrips shove out some javascript that
will do a window.reload()
after a predetermined amount of time calculated using 8.00pm and depending
on whether it's current server time or current client time your interested
in.
Use the setTimeOut function in javascript for best results in the window
onload event.
eg. iTimerID = window.setTimeout(myCode, iMilliSecondsBeforeEightPM)


function myCode()
{
window.reload();
}

matt.
-----Original Message-----
From: Philip Steel [mailto:PhilipS@t...]
Sent: 27 September 2002 15:33
To: ASPX_Professional
Subject: [aspx_professional] RE: Changing link as a function of time


yup, unless you force it to reload itself say once a minute (or every
however many seconds you want).
You could do this really simply by the meta refresh in the header:

<meta http-equiv="refresh" content="60">

Phil



-----Original Message-----
From: sg48@y... [mailto:sg48@y...]
Sent: 27 September 2002 16:32
To: ASPX_Professional
Subject: [aspx_professional] RE: Changing link as a function of time


Phil
Thanks for responding. I see what you are getting at. The question I have 
is that if is not 8 pm when the page is initially loaded, won't the page 
just sit there statically until it is reloaded due to some user action?
Thanks. - Steve

---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---

---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---

  Return to Index