[eluser]Otemu[/eluser]
Hi,
I have a login screen for my Codeigniter site, the login overlays my main home page in an iframe. I need the following to happen, once a user enters the correct login details, the iframe should close and redirect them to the account page.
My homepage is setup with this code:
Code:
$(".login").colorbox({transition:"none", width:"60%", height:"80%", iframe:true});
The iframe page is using this code:
Code:
<a >Open from parent</a>
This closes the iframe but opens another iframe, so I must be missing some small detail. Alternatively I could use
Code:
[removed] if (top.location != self.location) { top.location = self.location.href;}[removed]
on the page that I am directing to which works, but that seems a bit messy.
Any help be great.
Thanks