Page 1 of 1

Want to refresh page without "must resend data" wa

Posted: Thu Oct 16, 2003 12:31 pm
by haddaway
Hi - very newbie here.

I have a GetData page that accepts userid,password. It POSTs those values to DoQuery page. If my users use the browsers refresh button, they get a warning saying "the page cannot be refreshed without resending the data." Then they have to press "Retry".

I would like to either have a "Refresh" button or just have the page refresh itself every 'x' seconds, BUT... I don't want them to see the warning window.

Is there a way to do this?

Thanks!

Posted: Thu Oct 16, 2003 2:46 pm
by evilMind
Using javascript you can do something like:

Code: Select all

<script language="JavaScript1.2" type="text/javascript">
setTimeout("window.location.reload(true)", 90*1000); // refresh time in ms
</script>
That will refresh the window every 25 minutes ( I think if my math is correct.. not my best subject btw.)