Reloading launch window

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

Guest

When I close a pop up window, I'm using Javascript to reload the launch
window(window.opener) in order to pick up any changes I have just submitted
to the database.

This works well but for an alert that appears every time saying:
"This page cannot be refreshed without resending the information. Click
Retry to send the information page again or click Cancel to return to the
page you are tyrig to view."

Is there any way that I can stop this message from being displayed?

Thanks for any help in advance,

CR
 
For anyone interested. I found a working solution:
The problem with .net-pages is that there is always a form inside, so the
reload() function used in the javascript to reload the launch window, will
ask if your sure you want to do a reload.
So instead of using reload(), see the work around below:

Put the code below at the end of your page processing:
Response.Write("<script>window.opener.location=window.opener.location;
self.close();</script>")

:-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top