<?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: Add script to popup in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/add-script-to-popup/m-p/67640#M3239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Buse. &amp;nbsp;I must have missed that page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2016 02:27:20 GMT</pubDate>
    <dc:creator>DanikBourdeau</dc:creator>
    <dc:date>2016-09-05T02:27:20Z</dc:date>
    <item>
      <title>Add script to popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-script-to-popup/m-p/67638#M3237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering if it's possible to add a script tag to a custom popup in ArcGIS Online. &amp;nbsp;It seems like I can add html tags but script tags just disappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example. &amp;nbsp;If I configure a popup for a layer and choose 'custom attribute display', I can view the html source. &amp;nbsp;If I add the code below, cof_div0 shows up fine but the script never runs to populate cof_div1.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;div id="cof_div0"&amp;gt;This is div 0&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div id="cof_div1"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;script&amp;gt;document.getElementById("cof_div1").innerHTML = "Hello World"&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If the above is not possible, does anyone know how I can customise popups with javascript. &amp;nbsp;I need to calculate the date something is going to happen based on a couple of attributes from the layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 08:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-script-to-popup/m-p/67638#M3237</guid>
      <dc:creator>DanikBourdeau</dc:creator>
      <dc:date>2016-09-01T08:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add script to popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-script-to-popup/m-p/67639#M3238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know only HTML is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm" title="http://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm"&gt;Supported HTML—ArcGIS Online Help | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 10:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-script-to-popup/m-p/67639#M3238</guid>
      <dc:creator>Buseİbşiroğlu1</dc:creator>
      <dc:date>2016-09-02T10:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add script to popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-script-to-popup/m-p/67640#M3239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Buse. &amp;nbsp;I must have missed that page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 02:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-script-to-popup/m-p/67640#M3239</guid>
      <dc:creator>DanikBourdeau</dc:creator>
      <dc:date>2016-09-05T02:27:20Z</dc:date>
    </item>
  </channel>
</rss>

