Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Reload opener frame from popup

    I am trying to reload/refresh a subframe from a popup window. I have tried many different ways, but neither of them has worked so far...

    This is the main.asp file:

    <FRAMESET COLS="190,*">
    <FRAME SRC="nav_a.asp" NAME="a2">
    <FRAME SRC="index.asp" NAME="b2">
    </FRAMESET>


    In nav_a.asp I open a popup window:

    <A href="javascript: openWin('selectno.asp')">Select Number</A>


    From my popupwindow I use a input form to select number. Before I submit and close the window am I trying to reload the nav_a.asp page with the new selected number. This is how I tried:

    function insert() {
    ...
    window.opener.parent.frames.["nav_a.asp"].location.reload();
    ...
    }

    This is not working as you can understand. Is there anyone that can help me with this small little issue?

    -Martin

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this questioned has been answered many times on this forum before: do yourself a favour and do a search for it.
    *keep it simple (TM)

  • #3
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The reason why I asked this question is why I couldn't get it working. I have been searching this and other forums and tried many different ways without finding a good solution. I will continue to search for a solution on this forum. All I asked for was a little bit of help...

  • #4
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A have found a solution to my problem. The reason why I couldn't get it working was due to a reference in the popup window. I needed to reference to the parent frame of the popup before I could reference to the opener.

    function insert() {
    ...
    parent.opener.location.reload();
    ...
    }

    -Martin


  •  

    Posting Permissions

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