views:

155

answers:

3

Hello

I create a link with window.open, in new opened window i add a button for close window. I want when my window is close then parent window will refresh, so i use this script :

window.opener.location.href="https://qa.bloom.com/products/customer/account/profile/"; window.close();

In my application parent window use secure server like as https://examples.com but child window not use secure server.

This is working in ff and but in IE 8 it's not working. Why is IE8 opening a new window instead of just refreshing the existing one?

Please give your suggestion.

Thanks

A: 

Try following code:

window.opener.location = self;
window.opener.location.reload();
window.close();

It works great in my IE v8.0

mastak
window.opener.location = self;It open new window if IE8 with child window URL and window.opener.location.reload();not working in IE8
Seema
@Seema: not working in IE8 - what do you mean ? does it not work under you IE8 ? - yes, I can agree on that, but in general it works under IE8. The reason might be your IE special security settings or using secure server connection. Sorry, but I can't reproduce your issue and again it works great with my IE8. If you able - try to publish your not working sample.
mastak
A: 

down vote

Try following code:

window.opener.location = self; window.opener.location.reload(); window.close();

It works great in my IE v8.0

yes, It's work fine in IE v8.0 but when i use secure server then this script not working, after close the child window it open new window instead of refresh the parent window.

Seema
can i refresh the parent window by handle the child window close event on my parent window?
Seema
A: 

Hi. Just wondered if you got a solution to this. I have exact same problem. Popup is located in a secure directory, parent isnt. When user clicks to login, the secure window pops up. On sucessful login the secure window closes and the parent window refreshes to show the new session status. Works great in Firefox and Chrome but not in IE8 ??

Chris