ajax loading into div, grep style command?
I have a nice little set of tabs going that load separate protected pages into a div. This is going along swimmingly, but when my user logs out they would normally be redirected to the login page. However now this is inside the frame.
While this could work I would love it to go back to the start page. How can I do this with php / jquery (detect if it is a login page, and move itself back to the index)?
Thanks.
EDIT: all it needs to do, is look for a piece of text 'login' and if it exists - redirect the whole page to the index