How do I use the postMessage method with cross-site iframes?

Sdílet
Vložit
  • čas přidán 24. 07. 2024

Komentáře • 18

  • @grizfan93
    @grizfan93 Před rokem +1

    Thank you so much! I've been struggling with this over the past few weeks, as I've been working with a couple of clients who use a 3rd-party scheduling system embedded in an iFrame. Working with the developers of the 3rd-party system, we mostly got this working, but now I have a way to really understand this on my own for future reference. I'll probably watch this a couple of times before it all sinks in, but this will help me with future clients.

    • @TeamSimmer
      @TeamSimmer  Před 10 měsíci

      Thank you, hopefully it will all be clear after watching the video and reading the article ☺️

  • @naruchiharasendori
    @naruchiharasendori Před 28 dny

    Thank you. I've been stuck on cors policies issues for 2 weeks, this video helped me understand incredibly quick how post message works!

  • @deepakwebdev
    @deepakwebdev Před rokem +1

    Thank you for sharing the excellent post😊. I encountered a similar issue during one of my projects, but at that time I was unaware of it because the tags were firing in the Tag Assistant, but the hit was not being sent. Fortunately, my developers were able to identify and resolve the issue.

  • @normalitee0os
    @normalitee0os Před 5 měsíci

    Simple and straight to the point. PERFECT!

  • @alexandrugabrieliosif1261

    Thanks a lot!
    This + article is really helpful

  • @beinghappy3924
    @beinghappy3924 Před 7 měsíci +1

    Thanks. This was a great video .

  • @ronaldobarreirinhas4770

    Tks master!

  • @gonesathwika1798
    @gonesathwika1798 Před 8 měsíci

    Hi, Can capture data when it is still in the process of loading? or does it need to be completely loaded to receive data from parent? I'm working on analytics I need data to be passed to an form parent before it loads. Because I need to send onload page details to adobe as soon as it loads. the method will automatically triggered on load of so i need data before it loads.

    • @TeamSimmer
      @TeamSimmer  Před 8 měsíci

      Hi, the does not need to be loaded completely, no. The listener and the dispatcher just need to be loaded for the channel to work.

  • @satya-ov7wv
    @satya-ov7wv Před 10 měsíci

    How to post a message from the parent window to the looker which is appended to div element

    • @TeamSimmer
      @TeamSimmer  Před 10 měsíci

      Hi, I'm not sure what you mean with "looker", but the placement of the is irrelevant - you just need to use a CSS selector to locate it on the page to be able to post to it.

  • @zakecysec
    @zakecysec Před rokem

    What browser do you use? im using firefox but don't have top option in console

    • @TeamSimmer
      @TeamSimmer  Před 10 měsíci

      We use Google Chrome whenever developer tools are needed. Chrome has many downsides but its developer tools are the best.

  • @eduardoamodelafuente1722
    @eduardoamodelafuente1722 Před 7 měsíci

    Hi! Thanks for the video. When you capture at the end of it dataLayerReady, status:true I have this message --> VM1607:1 Uncaught TypeError: Cannot read properties of null (reading 'contentWindow')
    at :1:33 . Is it needed to do a changes from dev team in the datalayer? Could you upload a video to know how it works in GTM? This could help to understand it better rather than reading a long document with so technical points that can you can get lost.. Thanks!!

  • @iamyou6555
    @iamyou6555 Před 6 měsíci

    Will this work if you don't own the source code of the main website that is embedding the ?

    • @TeamSimmer
      @TeamSimmer  Před 6 měsíci

      You don't need to own the source code but you do need to be able to run your scripts in both the and the parent page.

  • @javascriptduniya1201
    @javascriptduniya1201 Před 3 měsíci

    Perfecto :)