The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

AJAX problem. Execute function outside of IFRAME from within IFRAME

Hi there and thanks for visiting my post,

I'm working on an issue that I'm having here on an Intranet I'm working on here @ work. I'm using the Ext framework (extjs.com which is really rad btw) to create a paneled layout. Each panel is essentially an iframe that's styled up real nice. My problem is, is that I'm using a lot of AJAX. At the top of my AJAX scripts I have PHP security stuff that redirects the browser to the login page. However, it's redirecting in the IFRAME and not the entire browser when the AJAX response comes back. I understand that I'm within an IFRAME so this behavior is correct. However, if the user logs in through the IFRAME (which they will), then a whole new instance of the Intranet is in the IFRAME. I do not want this. What I'm hoping to achieve is trigger a function outside the IFRAME when the redirect occurs that will update the header.location and move them to the login page. I'm not really sure if this make sense or is even possible. If not, I just want to know if its possible to execute a function outside of an IFRAME via JavaScript. Or, if you happen to know PHP (the ss language I'm using) then perhaps their is a way that way. Any help would be greatly appreciated. Thanks!!