E-mail List Archives

RE: HowTo provide the user the ability to turn refresh off?

for

From: Michael Goddard
Date: Dec 20, 2002 2:15PM


You probably could do something like this...

Create a form where the user can select a pre-determined list of time
variants you set, once they click on submit, then using a server side script
language such as asp or php, have the <meta http_equiv="REFRESH"
contents="300"> be dynamically written...something like this

============================================
<doctype>
<html>
<?php
Print "<meta http_equiv="REFRESH" contents="".$seconds."">n";
?>

<form>
<select name="seconds">
<option value="300">3 seconds</option>
<option value="400">4 seconds</option>
<option value="500">5 seconds</option>
<option value="600">6 seconds</option>
</select>
<input type="submit">
</form>
</html>
============================================

That should do it I believe! Of course I'm new to this stuff so there may
be a better solution!

Hope that helps out.

Michael

-----Original Message-----
From: Mark Rew [mailto: <EMAIL REMOVED> ]
Sent: Friday, December 20, 2002 2:32 PM
To: <EMAIL REMOVED>
Subject: HowTo provide the user the ability to turn refresh off?


Hi list,

I have a set of web pages at:
http://www.weather.gov/
Click on "forecast" or "current," or some other weather information link.

The page refreshes the map every 300 seconds. How do I give the user the
option to turn this refresh off. Better yet, I would like to provide the
user the option of turning the refresh off, and on at will.

The pages are written in:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

The option allowing refresh is:
<meta http_equiv="REFRESH" contents="300">

Thanks for any suggestions.
Mark Rew
e-mail: <EMAIL REMOVED>



----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/





----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/