SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict suzkaw's Avatar
    Join Date
    Apr 2002
    Location
    North Carolina
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Refresh page from a Popup

    Hi,
    I have a page that opens a popup window to delete items out of a database. After the item is deleted and the window is closed I need the main window to refresh. Is there any examples of a way to do this? Or do you have any ideas?
    Thanks Eric.

  2. #2
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Kingston
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One of these should work ... (place in your popup window).

    onUnload = parent.top.location.href = "file.name"

    or

    onUnload = window.opener.top.location.href = "file.name"

  3. #3
    SitePoint Addict suzkaw's Avatar
    Join Date
    Apr 2002
    Location
    North Carolina
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome thanks a lot. That got me headed in the right direction.
    Here is the one I finally used:
    onUnload = window.opener.location.reload();
    because I called that same popup from multiple files.
    Thanks Eric.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •