<?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 Iframe in context menu in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/iframe-in-context-menu/m-p/1377019#M57200</link>
    <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;I'm currently working on a project with MapViewer i saw that Arcade can display HTML but i wonder why does frame, iframe and script tags are always deleted&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var body = `&amp;lt;p style='font-family: Arial; text-align: center'&amp;gt;test&amp;lt;/p&amp;gt;&amp;lt;script&amp;gt;alert('test');&amp;lt;/script&amp;gt;`

return { type: 'text', text: body }&lt;/LI-CODE&gt;&lt;P&gt;Like for instance, this code should trigger the browser "alert" function but, here's what MapViewer display:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div&amp;gt;
   &amp;lt;p style="font-family:Arial; text-align:center;"&amp;gt;test&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it do the same for iframe, frame, etc...&lt;BR /&gt;Is there any way to force MapViewer to handle script or iframes ?&lt;BR /&gt;It would allow to do so much more than just Arcade himself&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 14:22:42 GMT</pubDate>
    <dc:creator>N0MAD</dc:creator>
    <dc:date>2024-02-01T14:22:42Z</dc:date>
    <item>
      <title>Iframe in context menu</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/iframe-in-context-menu/m-p/1377019#M57200</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;I'm currently working on a project with MapViewer i saw that Arcade can display HTML but i wonder why does frame, iframe and script tags are always deleted&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var body = `&amp;lt;p style='font-family: Arial; text-align: center'&amp;gt;test&amp;lt;/p&amp;gt;&amp;lt;script&amp;gt;alert('test');&amp;lt;/script&amp;gt;`

return { type: 'text', text: body }&lt;/LI-CODE&gt;&lt;P&gt;Like for instance, this code should trigger the browser "alert" function but, here's what MapViewer display:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div&amp;gt;
   &amp;lt;p style="font-family:Arial; text-align:center;"&amp;gt;test&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it do the same for iframe, frame, etc...&lt;BR /&gt;Is there any way to force MapViewer to handle script or iframes ?&lt;BR /&gt;It would allow to do so much more than just Arcade himself&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 14:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/iframe-in-context-menu/m-p/1377019#M57200</guid>
      <dc:creator>N0MAD</dc:creator>
      <dc:date>2024-02-01T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Iframe in context menu</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/iframe-in-context-menu/m-p/1377457#M57218</link>
      <description>&lt;P&gt;Looking in the Esri developer doc, I found this page: &lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm" target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically, they explain that few tags are available, so tags like 'style', 'script', and others are simply removed from the page.&lt;/P&gt;&lt;P&gt;That's pretty sad when you consider how useful scripts and styles would be.&lt;/P&gt;&lt;P&gt;Like defining a style for all contextual menus, or allowing more complex manipulation of contextual menus...&lt;/P&gt;&lt;P&gt;Perhaps in a future update&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 08:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/iframe-in-context-menu/m-p/1377457#M57218</guid>
      <dc:creator>N0MAD</dc:creator>
      <dc:date>2024-02-02T08:23:58Z</dc:date>
    </item>
  </channel>
</rss>

