By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,148 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

How could I use the $.prettyPhoto.close(); in a php page?

P: 1
I use the prettyPhoto.
I open an External page B(iframe) in the page A. Then I want to click an button and submit a form to a .php page C.
How can I close the page B and return to the page A just like I click on the black background around the iframe, after I submit the form in the page B?
May 10 '13 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
You'll need to use top or parent (or window. in front of either) to access the parent page. Call this onload from the PHP page C, e.g.
Expand|Select|Wrap|Line Numbers
  1. top.$.prettyPhoto.close();
May 12 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.