I need to add a button to a page that can enable or disable page auto refreshing. Can anyone help me get this started

1. I want the page to refresh every 10 seconds by default and display a button "Stop Refresh

2. When user clicks button, it stops the auto refresh and button now reads "Start Auto Refresh

and so on. I am currently using only a meta tag for refreshing but cannot control it.

Thank
C

Re: Control page refreshing by Steven

Steven
Mon Apr 26 12:44:32 CDT 2004

> and so on. I am currently using only a meta tag for refreshing but cannot
control it.

Sure you can!

<%
if request.querystring("s")="" then
%>
<meta name="Refresh" content="8;http://somepage.html">
<%
else
'// nothing
end if
%>

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Personal favourites

Practically Nerded - http://mvps.org/PracticallyNerded/
Bugs, Glitches n stuff - http://mvps.org/inetexplorer/Darnit.htm
Calendar of Updates - http://www.dozleng.com/updates/index.php?&act=calendar


"Chris MArtin" <cdmis@yahoo.com> wrote in message
news:5D8D3676-9DC5-4D25-89EB-1060FFE0D378@microsoft.com...
> I need to add a button to a page that can enable or disable page auto
refreshing. Can anyone help me get this started?
>
> 1. I want the page to refresh every 10 seconds by default and display a
button "Stop Refresh"
>
> 2. When user clicks button, it stops the auto refresh and button now reads
"Start Auto Refresh"
>
> and so on. I am currently using only a meta tag for refreshing but cannot
control it.
>
> Thanks
> CM
>
>



Re: Control page refreshing by anonymous

anonymous
Mon Apr 26 13:56:11 CDT 2004

Not sure I understand how to use this code. How do I send a button click to it?

Re: Control page refreshing by Steven

Steven
Mon Apr 26 14:13:02 CDT 2004

<%
if s="" then
'// the querystring is blank
%>
<form action="thispage.asp?s=1" method="post">
<%
else
'// it's not blank
%>
<form action="thispage.asp" method="post">
<%
end if
%>

........ rest of your form code......

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Personal favourites

Practically Nerded - http://mvps.org/PracticallyNerded/
Bugs, Glitches n stuff - http://mvps.org/inetexplorer/Darnit.htm
Calendar of Updates - http://www.dozleng.com/updates/index.php?&act=calendar


"Chris Martin" <anonymous@discussions.microsoft.com> wrote in message
news:7938204A-76CC-4749-8263-224A36BE026D@microsoft.com...
> Not sure I understand how to use this code. How do I send a button click
to it?