WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

Number of posts in this thread: 2 (In chronological order)

From: Mark Rew
Date: Fri, Dec 20 2002 12:42PM
Subject: HowTo provide the user the ability to turn refresh off?
No previous message | Next message →

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 ADDRESS REMOVED =



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


From: Michael Goddard
Date: Fri, Dec 20 2002 2:15PM
Subject: RE: HowTo provide the user the ability to turn refresh off?
← Previous message | No next message

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 ADDRESS REMOVED = ]
Sent: Friday, December 20, 2002 2:32 PM
To: = EMAIL ADDRESS 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 ADDRESS 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/