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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wffger
    New Member
    • May 2013
    • 1

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

    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?
    Last edited by wffger; May 10 '13, 01:49 AM. Reason: Add a link.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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.
    Code:
    top.$.prettyPhoto.close();

    Comment

    Working...