I am trying to reload a page created from a POST request. I have tried the following approaches:
The first method does not seem to work, because the POST data is not sent. The history and location methods the browser to pop-up an alert to confirm if the request is to be reposted. Anyone have a better way of refreshing a POST request?
Cheers, Neil
Code:
# using <meta>
<meta http-equiv="REFRESH" content="20">
# using javascript:
function dynamicPage() {
setTimeout( "countDown(10)", 1000 );
}
function countDown(n) {
window.status = n + " seconds to refresh";
if( n == 0 )
history.go(0);
// self.location.reload( true );
setTimeout( "countDown(" + (n-1) + ")", 1000 );
}
Cheers, Neil