?
Solved

Anybody know how to disable the refresh warning message when the reload function is called?

Posted on 2010-01-06
3
Medium Priority
?
687 Views
Last Modified: 2012-05-08
Hi,
I use javascript to refresh windows.
Functionaly it works fine. However it displays annoying warning message: The Page cannot be refreshed without resending... Then user must click Retry to reload it.
Even I use the reload(true), the message still pops up.
Anybody know how to disable the refresh warning message?

this is my code
    Response.Write("<script>opener.location.reload(true);self.close();</script>")
0
Comment
Question by:hidrau
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Morcalavin earned 2000 total points
ID: 26193239
Usually, when I post to a page  the page I post do processed the data only.  Then after it's done, it does a redirect to another page(making the request a GET instead of a POST).

myform.aspx posts to process_data.apsx.
process_data.aspx does the stuff that it needs to do with the posted data, then does a response.redirect to view_results.aspx
view_results.aspx displays whatever I need it to display, and pressing the Reload button does not reload form data, since it was delivered via   a GET request from process_data.aspx.
0
 
LVL 1

Author Comment

by:hidrau
ID: 26198539
thanks
0
 
LVL 1

Author Closing Comment

by:hidrau
ID: 31673635
thanks
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question