SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2003
    Location
    England
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb Refresh Query...

    I have a page of rows of dynamic data... the user can click on a link for each entry... that allows them to open a popup window... add / edit or delete some sub-entries for each entry.

    When they close the popup window, how can I get the background page to refresh and show the updated data... without pressing the refresh button...

    a) could I get the page to refresh automatically every 30 seconds ?
    b) could I get the popup to switch focus to the window that opened the popup and then refresh that page ?

    Any tips ideas would be v.appreciated...

    Cheers

  2. #2
    SitePoint Wizard Chris82's Avatar
    Join Date
    Mar 2002
    Location
    Osnabrück
    Posts
    1,003
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have to use Javascript for this. PHP cannot do it.

    Something like this in the popupWindow:

    Code:
    window.opener.document.location.reload();


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
  •