This topic is locked

automatic refresh

6/25/2004 8:17:20 PM
ASPRunnerPro General questions
author

We have a screen of SQL information that we would like to leave up all the time.
However, the data in the table does change.
Is there a way to schedule an update of the screen information. I was thinking something similar to browser refresh button but do not want people to messing with the keyboard.
Any advice would be appreciated.
thx
rick w

S
Scruffy 6/26/2004

What about using
<META HTTP-EQUIV="REFRESH" CONTENT="180">
in the page, to refresh the page every 3 minutes?

admin 6/26/2004

In most case refreshing page using meta tags is enough.
Also you can use something like this:

<scritpt>

setInterval("OnTimer()", 30000);

function OnTimer()

{
document.forms.frmMain.submit();
}
</script>


I haven't test this code however it should work.

500142 6/26/2004

Thank you for the suggestions.
I will try tomorrow evening and let you know.
rick w

500143 7/1/2004

The META addition works and is exactly what I was looking for.
Thank you for taking the time to respond.
Regards,
Rick