popup window reload parent.window.opener caused permission denied error if opener window navigate to other page
Posted on 2006-04-17
Hi, I have following JS problem can't be fixed. Hope somebody can help me here.
I have a linke in window A, when click open a popup window B, there is close button in B, after user finish their work in B, they click "close" button, it should close popup and refresh the calling window A. See following code I did:
I used "parent.window.opener" here since window A is inside a frameset, there is a menu bar above A. If user navigate in calling window such as click menu in to change content from A to C. then popup B close button will give me "permission denied" error. If they keep A window not change, then everything works fine. I know the error caused by" parent.window.opener.location.reload();" since the url already changed. But I have to refresh the calling window to show update information there and I can't control people don't do navigation in calling page. Is there any suggestion here?