views:

475

answers:

3

I am using the AJAX modalpopupextender and I have an iframe embedded in the modal popup. I need to be able to reference the parent window (the window from which the modal popup was launched) to reload/change the URL when certain events on the modal popup are fired. I have tried window. top, window.parent, opener, root, etc., and have had no success. Any help would be appreciated.

A: 

Perhaps this will help

Chris Tek
A: 

Something along the lines of:

self.parent.opener

I've created a modal popup a bit like that in the past, and that selector enabled me to start mucking around with the DOM on the page that opened the window.

See more here or here

Zhaph - Ben Duguid
A: 

I've tried added the following to the onload event in the body tag for a page on the iframe, and get the error that "self.parent.opener.location" is null:

self.parent.opener.location.href = "default.aspx"

Thanks for your help.