SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist jazztie's Avatar
    Join Date
    Mar 2001
    Location
    the Netherlands
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reloading a frame from a popup

    I have a slight problem.

    I have a frameset which has two frames.
    One is called 'menu' the other is called 'mainFrame'.
    'menu' has several options.
    'mainFrame' has a list of projects

    I have a javascript open a new window from frame 'menu'. In this window I can add or delete projects. (which are listed in the mainFrame).

    Now, when the user is done with the adding and deleting, the user can close the window.
    What I want to do, is to RELOAD the 'mainFrame' upon closing the popup-window.

    What I have so far is:
    onClick=window.close(),window.opener.location.reload();

    Which will close the window, and reload the page it has been opened from. But, this will reload the menu-frame. And I want to reload the 'mainFrame'.
    Can anyone help with the code to accomplish this?

    Thank you
    Jazz

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change it to window.opener.top.mainFrame.location.reload(). I'd also put it before window.close().
    ck :: bringing chris to the masses.

  3. #3
    SitePoint Evangelist jazztie's Avatar
    Join Date
    Mar 2001
    Location
    the Netherlands
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanx, that works like a charm!

    Jazz



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
  •