Reputation: 21
I'm trying to include multiple height-adjusting iFrames with different sources on the page below:
https://succeed.serenova.com/lp-cloud-contact-center/
The only instance where iFrame Resizer works is on the first lightbox, which is instantiated through the "Get My Free Live Demo" button and a few others.
The lightboxed iFrames connected to the "Questions?" and "Download the Gartner Report" buttons are not working, despite being implemented in exactly the same way.
Here is the first light box before resize:
And after successful resize:
First iFrame After Successful Resize
And the second before:
Second iFrame Before Resize Attempt
And after failed resize:
Second iFrame After Failed Resize
Test Steps:
OR, to reproduce on your own:
Thanks in advance for any help!
Upvotes: 2
Views: 1018
Reputation: 13077
Have a look in your console log
iframeResizer.js:634 Failed to execute 'postMessage' on 'DOMWindow':
The target origin provided ('https://pi.pardot.com') does not match the
recipient window's origin ('https://go.pardot.com').
You need set the checkOrigin
property to fix this.
https://github.com/davidjbradshaw/iframe-resizer#checkorigin
Upvotes: 0