Internet Explorer alert on resending information

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All,

Can anyone let me know why do we generally see a message which says: "IE
needs to resend the info you've previously submitted. Retry Cancel"

How can I prevent IE from showing this message? I am using javascript code
i.e., window.location.reload(true) to reload an existing web form.

Thanks for any pointers!!
 
This happens when form data has been submitted. In order to truly refresh
the page, the form data must be resubmitted. Since this may be undesirable
in some cases, that message is displayed to give the user the opportunity to
abort.

So to avoid this message, don't resubmit the data. A line of JavaScript
similar this should refresh the page without reposting the data:
window.location = window.location;
 
Thanks Steve! It worked like a charm!

Steve C. Orr [MCSD said:
This happens when form data has been submitted. In order to truly refresh
the page, the form data must be resubmitted. Since this may be undesirable
in some cases, that message is displayed to give the user the opportunity to
abort.

So to avoid this message, don't resubmit the data. A line of JavaScript
similar this should refresh the page without reposting the data:
window.location = window.location;

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net


Diffident said:
Hello All,

Can anyone let me know why do we generally see a message which says: "IE
needs to resend the info you've previously submitted. Retry Cancel"

How can I prevent IE from showing this message? I am using javascript code
i.e., window.location.reload(true) to reload an existing web form.

Thanks for any pointers!!
 
Back
Top