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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    FireFox loses opener reference

    When I create a new popup window and different pages get loaded in this popup after each other (by submitting forms, target stays the same=popup) and in the last page I want to change the content of the opening window using
    opener.document.location.href = 'someJSP.jsp'
    FF loads someJSP.jsp in the popup window itself.
    So it seems that FireFox loses the reference to the opener window. In IE it works just fine.

    Any ideas?

    Tnx, Tom

  • #2
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    How about…?
    Code:
    opener.location.href = …

  • #3
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Doesn't change anything..

  • #4
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Just did a quick test, changing the opener.location.href after moving through a sequence of several pages within a popup window and it works fine for me.

    I/we will probably need to see more of your code to track down the root of your problem.
    Are you able to post a url where we can see the site code for ourselves?

  • #5
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, the application/code isn't deployed on a website yet.
    I tried this:
    - gave the popup window a name: 'test'
    - alert(opener.name) shows ... 'test' !

    I will look further myself and if I come up with something, I'll let the world know

  • #6
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    It should work, but you could fall back by giving the opener a name.

    e.g. within the main/opener window
    Code:
    self.name = 'mainWin';
    Then, you should be able to refer to it using that name from any other window on your site.

    e.g.
    Code:
    mainWin.location.href = …


  •  

    Posting Permissions

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