wobbles
05-12-2003, 09:48 AM
I am using the following code "history.back();window.location.reload();" to move to the previous page in my browsers history.
The previous page in question is a form with an action of POST which sends a request to a cgi script. Prior to putting in the window.location.reload(); I got the message Warning: Page has Expired, so I have used this code to force the page to reload.
Now the problem is that a Dialogue box pops up saying "The page cannot be refreshed without resending the information, Click Retry to send the information again, or click Cancel to return to the page that you were trying to view".
I can bypass this message by setting the form action to GET instead of POST but I was wondering if anyone new a way of stopping this dialogue box from popping up or by answering it through the Javascript.
Any thoughts would be much appreciated !!
The previous page in question is a form with an action of POST which sends a request to a cgi script. Prior to putting in the window.location.reload(); I got the message Warning: Page has Expired, so I have used this code to force the page to reload.
Now the problem is that a Dialogue box pops up saying "The page cannot be refreshed without resending the information, Click Retry to send the information again, or click Cancel to return to the page that you were trying to view".
I can bypass this message by setting the form action to GET instead of POST but I was wondering if anyone new a way of stopping this dialogue box from popping up or by answering it through the Javascript.
Any thoughts would be much appreciated !!