<?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: WAB Splash widget does not work in an iframe in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7706#M183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the &amp;lt;iframe&amp;gt; tag this&amp;nbsp;morning and it looks like it works! &amp;nbsp;December update must have fixed it&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/283857_iframe_wab.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2016 15:48:27 GMT</pubDate>
    <dc:creator>CameronMcCormick</dc:creator>
    <dc:date>2016-12-15T15:48:27Z</dc:date>
    <item>
      <title>WAB Splash widget does not work in an iframe</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7702#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although Esri provides &lt;A href="http://support.esri.com/technical-article/000012322"&gt;guidance on embedding a WAB app in an iframe&lt;/A&gt; not all WAB widgets will work in an iframe. &amp;nbsp;Here are some details on problems we are having with the Splash widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I walked through the Javascript code for the Splash page widget. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;The Splash widget is trying to get the application ID from the URL. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;It does this when it first tries to open.&amp;nbsp; Unfortunately, the way it does this will not work for an application in an iframe.&amp;nbsp; I would consider it a defect in the function that ArcGIS uses to determine the URL where the widget is located.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The Splash widget’s “onOpen” function is ultimately calling a utility function to try to extract the application ID from the url:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;z.getAppIdFromUrl = function() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var b = !0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, &lt;SPAN style="background: yellow;"&gt;a = window.top.location.href&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;A cross-domain site in a frame can’t access those values so the browser is denying it.&amp;nbsp; The utility function isn’t catching the error and behaving gracefully, so it just hangs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;You either need to not use the Splash widget, or contact Esri support and explain the issue to them, and see if it can be repaired or if there is a suggested alternative.&amp;nbsp; This getAppIdFromUrl() function should be putting a try/catch block around its attempt to read the HREF and if it fails it should be falling back to trying to get the appID from elsewhere.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;So where does this leave me? &amp;nbsp;Any suggestions on how I can keep my WAB app in an iframe but also use the Splash widget?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Bernie.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 14:26:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7702#M179</guid>
      <dc:creator>berniejconnors</dc:creator>
      <dc:date>2016-09-22T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Splash widget does not work in an iframe</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7703#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are embedding Web AppBuilder apps in story maps and the Splash widget cause the story map hang. ESRI please fix this problem.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 19:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7703#M180</guid>
      <dc:creator>MichaelSu</dc:creator>
      <dc:date>2016-09-28T19:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Splash widget does not work in an iframe</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7704#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Esri Canada support informed me that this is a bug and it was introduced with the September 2016 update to AGOL. &amp;nbsp;For now my work around is to use the About widget and configure it to open&amp;nbsp;at launch time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 19:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7704#M181</guid>
      <dc:creator>berniejconnors</dc:creator>
      <dc:date>2016-09-28T19:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Splash widget does not work in an iframe</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7705#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN lang="en"&gt;Another workaround (for the developer version 2.2): 

&lt;/SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;&lt;STRONG&gt;Use the 2.1 widget and integrate it into the webapp 2.2.&lt;/STRONG&gt;

&lt;/SPAN&gt;I tested this solution, it is operational with a webapp integrated in iframe.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7705#M182</guid>
      <dc:creator>FlavieMORAUX1</dc:creator>
      <dc:date>2021-12-10T20:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Splash widget does not work in an iframe</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7706#M183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the &amp;lt;iframe&amp;gt; tag this&amp;nbsp;morning and it looks like it works! &amp;nbsp;December update must have fixed it&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/283857_iframe_wab.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 15:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-splash-widget-does-not-work-in-an-iframe/m-p/7706#M183</guid>
      <dc:creator>CameronMcCormick</dc:creator>
      <dc:date>2016-12-15T15:48:27Z</dc:date>
    </item>
  </channel>
</rss>

