0

I have a need to launch a third party site as a pop-up iFrame. When the buttons are selected in the iFrame (Save, Cancel), the iFrame is not closing. I'm using JavaScript to open it (.modal('show');), but can't seem to execute a .modal('hide') on it.

I was looking up event listeners to see if that was feasible. However, it appears I need the form id which I currently don't have and I'm not sure the 3rd party can/would provide, or even if that is a viable solution due to security reasons.

Bruno Toffolo
  • 1,504
  • 19
  • 24
  • 1
    Unless you can get some cooperation from the owner of the third party site this isn't really feasible. See this question for a possible solution http://stackoverflow.com/questions/9153445/how-to-communicate-between-iframe-and-the-parent-site – user1421750 Apr 14 '15 at 00:11
  • Wrap the iFrame in a div or other element of your choice. You will have full control over it, to hide or show or whatever. – colecmc Apr 14 '15 at 00:22
  • I am wrapping the iFrame in a div, but unable to reference the page object after the Save or Cancel is selected on the iFrame. – Wai-Ming Lau Apr 15 '15 at 00:21

1 Answers1

0

Ok. I found out I needed cooperation from the owner of the third party site. The header tags they were using did not allow for the page to be set as an iFrame. Once they removed the restriction it began to work.