W
Walter Watson
When I use javascript to show a modal dialog form in IE6 [using
showModalDialog()] containing a server-rendered page, there is a problem
when I use window.close() to cancel the dialog. I I then then manually (i.e.
not programmatically) refresh the parent page, the contents of the page are
replaced by the dialog page's url. This is because, I assume, the refresh
operation is re-preforming the last http post, which just happened to be
issued from the dialog. If after the cancel I issue a
window.location.reload() on the parent, all is well. However, since the
dialog was cancelled I don't want to programmatically refresh the parent.
The problem is that there is a chance that the user will manually refresh
the page in which case it all gets very nasty.
Does anyone know a work around for this?
showModalDialog()] containing a server-rendered page, there is a problem
when I use window.close() to cancel the dialog. I I then then manually (i.e.
not programmatically) refresh the parent page, the contents of the page are
replaced by the dialog page's url. This is because, I assume, the refresh
operation is re-preforming the last http post, which just happened to be
issued from the dialog. If after the cancel I issue a
window.location.reload() on the parent, all is well. However, since the
dialog was cancelled I don't want to programmatically refresh the parent.
The problem is that there is a chance that the user will manually refresh
the page in which case it all gets very nasty.
Does anyone know a work around for this?