View Full Version : FireFox loses opener reference
01-31-2007, 09:56 AM
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.
01-31-2007, 10:00 AM
opener.location.href = …
01-31-2007, 10:09 AM
Doesn't change anything..
01-31-2007, 10:25 AM
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?
01-31-2007, 10:43 AM
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 ;)
01-31-2007, 11:02 AM
It should work, but you could fall back by giving the opener a name.
e.g. within the main/opener window
self.name = 'mainWin';
Then, you should be able to refer to it using that name from any other window on your site.
mainWin.location.href = …
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.