PDA

View Full Version : Listening for popup window load events across domains



ryanhca
16 Nov 2010, 6:07 AM
I'm new to ExtJS, so this may be a basic question...

I have a page that's opening a popup window for an oAuth authentication request. The popup is a page in a different domain, and during the authentication process, the window goes through 3 page load events:
[Login Page]
\/
[Authorization Page]
\/
[Response Page]

In the opener window, I need to monitor those events to tell when the popup window has reached it's 3rd page load, extract parameters from the url, and then close the popup.

Again, the opener and the popup are in different domains. The domain for the opener allows cross-domain scripting, so that's not a problem. I have control over the content of the 3rd page, but limited control over where it's hosted -- and it will not allow cross-domain scripting, so I can't notify the opener from there. I also can't host the response page on the same domain as the opener window page.