Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Parent-IFrame Communication

(0) ShareShare
ReportReport
Posted on by 8

I created a HTML web resource on a form. This HTML generates an iFrame dynamically. It also needs to listen to requests coming from the child iFrame and blink/stop blinking the browser's tab.

Our dynamics CRM is over HTTP and the iFrame is over HTTPS.

This is the HTML:

demo.txt:320:240

Inside the iFrame, which we do not have access to as it is in another domain, the postMessage API is used to send data to the parent HTML like so: 

window.parent.postMessage(JSON.stringify({active: 1}), "http://path/to/our/org"); // our CRM is over HTTP

but the debugger inside messageHandler will not be hit.

The checkbox restrict cross-frame scripting is unmarked.

We are using Dynamics CRM v8.1 on-premise if that matters.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans