Automatically refreshing parent window

Discussion in 'Javascript' started by Steve Dower, Dec 8, 2003.

  1. Steve Dower

    Steve Dower Guest

    Is it possible to (via Javascript) refresh a parent page from a child page.
    I have an app that displays a list of items that the user has authority to
    change. If the user selects one of the items, another window is opened
    containing the details of the item. If the user changes any of the details
    of the item I'd like to refresh the original (list) page.
    Thanks in advance.
    Steve
     
    Steve Dower, Dec 8, 2003
    #1
    1. Advertising

  2. Steve Dower wrote:

    > [...] If the user selects one of the items, another window is opened
    > containing the details of the item. If the user changes any of the
    > details of the item I'd like to refresh the original (list) page.


    if (opener
    && !opener.closed
    && opener.location
    && (typeof opener.location.refresh == "function"
    || typeof opener.location.refresh == "object"))
    opener.location.reload();


    HTH

    PointedEars
     
    Thomas 'PointedEars' Lahn, Dec 9, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kenneth

    Refreshing parent window

    Kenneth, Jan 4, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    36,720
    Kenneth
    Jan 5, 2004
  2. =?Utf-8?B?UGlrb2xvIE1vbmRv?=

    model dialog box keeps refreshing its parent window.

    =?Utf-8?B?UGlrb2xvIE1vbmRv?=, Jun 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,986
    Trevor Benedict R
    Jun 9, 2004
  3. =?Utf-8?B?U2lsZWVzaA==?=
    Replies:
    4
    Views:
    33,916
    =?Utf-8?B?U29sZWwgU29mdHdhcmU=?=
    Oct 14, 2004
  4. =?Utf-8?B?QXNoYQ==?=

    Refreshing a parent window from child.

    =?Utf-8?B?QXNoYQ==?=, Mar 2, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    1,819
    =?Utf-8?B?QXNoYQ==?=
    Mar 2, 2005
  5. =?Utf-8?B?TWlrZSBMb3dl?=

    Refreshing a Datagrid on Parent from Popup Window

    =?Utf-8?B?TWlrZSBMb3dl?=, Mar 9, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    391
    =?Utf-8?B?TWlrZSBMb3dl?=
    Mar 9, 2005
Loading...

Share This Page