Hi Guys, I need to close an instance of prettyPhoto from within the iframe it's launched, without using the close button. I've tried using the api but am guessing it's out of scope within the launched iframe. I'd be grateful if anyone can help.
Example: A login page is loaded in the iframe with prettyPhoto, when the user is successfully logged in, I'd like the to redirect to a new page in the parent window and close the iframe.
At the moment, my site loads the redirected page in the iframe.. :(
Does anyone know how this can be achieved? Thanks.
If you want to close it by the click of a URL, it can be done by setting the target of the link:
More specifically what I'm trying to accomplish though is something similar to a php redirect opening up in the parent window, rather than in the iframe. So that the user doesn't have to click a link, or close for the window to go away.
hi
please did you find solution for your exemple Audesi
Example: A login page is loaded in the iframe with prettyPhoto, when the user is successfully logged in, I'd like the to redirect to a new page in the parent window and close the iframe.
Because i have the same probleme thx for your help
For vb.net I was able to do this onclick ClientScript.RegisterStartupScript(Me.GetType(), "Redirect", "parent.window.location.href='default.aspx';", True)