<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't close Action iFrame in CRM Extension in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-close-Action-iFrame-in-CRM-Extension/m-p/240459#M19355</link>
    <description>&lt;P&gt;That fixed it, can you please update the documentation in case any one else runs into this problem&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2018 18:59:39 GMT</pubDate>
    <dc:creator>Michael_Robella</dc:creator>
    <dc:date>2018-01-09T18:59:39Z</dc:date>
    <item>
      <title>Can't close Action iFrame in CRM Extension</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-close-Action-iFrame-in-CRM-Extension/m-p/240457#M19353</link>
      <description>&lt;P&gt;In my Javascript for handling the action in my iframe opened by the IFRAME action I cannot get the modal to close.&lt;/P&gt;
&lt;P&gt;I have tried the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;window.postMessage({"action": "DONE"}, "*");  //Does Nothing
window.parent.postMessage({"action": "DONE"}, "*"); //Does Nothing
window.postMessage({"action": "DONE"}, window.parent); //Throws a CORS Exception
window.parent.postMessage({"action": "DONE"}, window.parent); //Throws a CORS Exception
window.parent.postMessage({"action": "DONE"}, window); //Throws an invalid Window Exception
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Trying to get this to work on the latest Chrome Version 63.0.3239.108 (Official Build) (64-bit)&lt;/P&gt;
&lt;P&gt;Pretty Sure I am just passing the wrong arguments. Please let me know the right arguments and also please update the documentation for others with more detail.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 20:57:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-close-Action-iFrame-in-CRM-Extension/m-p/240457#M19353</guid>
      <dc:creator>Michael_Robella</dc:creator>
      <dc:date>2018-01-04T20:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close Action iFrame in CRM Extension</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-close-Action-iFrame-in-CRM-Extension/m-p/240458#M19354</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/michael_robellard"&gt;@Michael_Robellard&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Can you give this a try: &lt;CODE&gt;window.parent.postMessage(JSON.stringify({"action": "DONE"}), "*");&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:27:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-close-Action-iFrame-in-CRM-Extension/m-p/240458#M19354</guid>
      <dc:creator>Derek_Gervais</dc:creator>
      <dc:date>2018-01-05T21:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close Action iFrame in CRM Extension</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-t-close-Action-iFrame-in-CRM-Extension/m-p/240459#M19355</link>
      <description>&lt;P&gt;That fixed it, can you please update the documentation in case any one else runs into this problem&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 18:59:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-t-close-Action-iFrame-in-CRM-Extension/m-p/240459#M19355</guid>
      <dc:creator>Michael_Robella</dc:creator>
      <dc:date>2018-01-09T18:59:39Z</dc:date>
    </item>
  </channel>
</rss>

