Skip to main content
Participant
January 30, 2008
Question

popup form refreshing parent window

  • January 30, 2008
  • 1 reply
  • 473 views
We have a main parent page, from which you can do many things (among them add a file, delete a file, replace a file, where replace is basically delete then add) - the way it's coded, when you first go to the page, the parameters are in the URL; if you add a file, they stay in the URL, and everything's happy; if you replace or delete a file, though, the URL gets stripped of the parameters (since they're now in form variables). If you *then* go to add or replace a file after replacing or deleting, when the popup that lets you choose the file to add closes and tries to refresh the parent, you get the annoying "to display this webpage again, Internet Explorer needs to resend form data..." popup. If the user clicks "retry", it works just fine, but I'd like to eliminate the annoyance if at all possible.

Right now, the refresh parent/close popup is being accomplished with javascript:

opener.location.reload(true);
self.close();

The root of the problem seems to be that the delete function doesn't need a popup, and so doesn't retain the full URL with parameters, and I could do a lot of work to change that, but I'm wondering if there's any other way around this that might be simpler, since it's not something that comes up often or even causes any functional problems, but is annoying.
    This topic has been closed for replies.

    1 reply

    Inspiring
    January 31, 2008
    No, not if you use reload(). You might try setting the opener window.location equal to itself instead.
    slcroninAuthor
    Participant
    January 31, 2008
    Bummer.

    I actually already tried that, but I think because we're using fuseactions, it took me back to the default page for that URL, which is not the same page. Ah, well.