WebAIM - Web Accessibility In Mind

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