<?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: Embed HTML/JavaScript into ArcGIS Hub Webpage in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/1220862#M5420</link>
    <description>&lt;P&gt;I support the notion of some form of JS, or make it Arcade if you need, but some method of pulling external data/text into the page. From our perspective, we're aiming to share data and text from our other enterprise environments, and, to not require our staff to duplicate their efforts and copy/paste or rewrite content. I would like the ability to pull data from both our GIS other enterprise applications dynamically.&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2022 20:02:26 GMT</pubDate>
    <dc:creator>AbeCoughlin</dc:creator>
    <dc:date>2022-10-11T20:02:26Z</dc:date>
    <item>
      <title>Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500694#M2513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to embed an HTML/JavaScript page that I wrote using the JavaScript 4.13 API into an ArcGIS Hub webpage. The code also requires the use of several csv files in order to access the data it needs. Is there a way to just insert HTML/JavaScript directly into a page on a Hub website as well as upload the csv files? If so, any help would be greatly appreciated. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2019 17:52:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500694#M2513</guid>
      <dc:creator>NathanRice</dc:creator>
      <dc:date>2019-11-26T17:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500695#M2514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot add javascript to any of the elements in a Hub page layout directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create an app using the JSAPI, host it separately, and embed it using an iFrame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try to put JS into, say, the code view of a text element, you'll see on save that the JS gets stripped and transformed into something unusable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this by design and related to the general Esri policy of not being responsible for hosting/running custom client JS code in the Esri-owned AGO cloud infrastructure. That is, it is the same reason you can't create a custom widget for a Web App Builder that is actually hosted at AGO. To use a custom a widget, you have to run the site somewhere other than AGO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2019 18:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500695#M2514</guid>
      <dc:creator>NFlourish</dc:creator>
      <dc:date>2019-11-26T18:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500696#M2515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use your own \&amp;lt;style&amp;gt; tags and custom HTML by dragging a text card. As the other person mentions...javascript is not currently allowed due to possible collisions with the Hub's javascript runtime. Would be interested in hearing what you are trying to achieve as that is always a good source of inspiration for layout options in the site editor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Dec 2019 21:31:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500696#M2515</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-01T21:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500697#M2516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a page using HTML and the 4.13 JavaScript API. I was hoping to be able to embed that code directly into a Hub site, but I found a workaround by hosting a static site through AWS and using an Iframe box connecting to the static site.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 13:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500697#M2516</guid>
      <dc:creator>NathanRice</dc:creator>
      <dc:date>2019-12-02T13:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500698#M2517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - this is really the only option for including custom JS based functionality... and currently there is not a way for IFramed content to interact with the rest of the site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be kind of neat as an extensibility option for Hub to provide some minimal avenue for a 3rd party site to interact with the Hub... like if there was a documented shared cookie that Hub checked for updates every 30 seconds for something... and was only used as a way to send data to and from an IFramed element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As &lt;A href="https://community.esri.com/migrated-users/237322"&gt;Graham Hudgins&lt;/A&gt;‌ mentioned - you can use custom Style tags. Many traditional Javascript developers would be surprised by the sort of interactive and input driven content you can build with modern CSS. If you have a CSS wiz on staff, getting their ideas for interactive elements in Hub is worth the time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 14:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500698#M2517</guid>
      <dc:creator>NFlourish</dc:creator>
      <dc:date>2019-12-02T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500699#M2518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/237322"&gt;Graham Hudgins&lt;/A&gt;&amp;nbsp;- Here are a few examples of&amp;nbsp;why we would like to have custom JavaScript in Hub.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We&amp;nbsp;would like to track the number of downloads (or at least attempted downloads) and type of data people are downloading from our Hub site.&amp;nbsp; As far as I know, Esri does not offer a way to track download metrics.&amp;nbsp; In the old "Open Data" site we could include custom JavaScript that would&amp;nbsp;bind&amp;nbsp;to the download button click event and send an AJAX&amp;nbsp;request&amp;nbsp;to a webhook capturing&amp;nbsp;the download metric.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were also having issues downloading File Geodatabases from our Hub site - the button is present, but nothing happens when you click on it.&amp;nbsp; We have a support case and bug logged for this with Esri.&amp;nbsp; However in the meantime we are considering creating custom download code which would call&amp;nbsp;the "CreateReplica" REST call from our ArcGIS Server (which is working great).&amp;nbsp; We would need to override the download button event in Hub to call our download code instead... until the bug is fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping that this functionality will be included/fixed at some point and we won't have a need to write our own JavaScript fixes or create our own "Hub" like app.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 21:57:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500699#M2518</guid>
      <dc:creator>ShadCampbell</dc:creator>
      <dc:date>2019-12-13T21:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500700#M2519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shad - for download tracking the best solution we have today is to include a Google Analytics key on your Site. There you will get metrics on each dataset downloaded and a whole lot more!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll look into the bug that's been logged in FGDB downloads. Thanks for raising&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2019 14:07:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500700#M2519</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-16T14:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500701#M2520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, just a quick one showing what we want to do, basicly injecting content from the ArcGIS REST API:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="container"&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div class="table-responsive"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;br /&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;table class="table table-bordered table-striped" id="appels_srao_7jours"&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;th&amp;gt;Région&amp;lt;/th&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;th&amp;gt;Nb Appels&amp;lt;/th&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;script&amp;gt;&lt;BR /&gt; $(document).ready(function() {&lt;BR /&gt; $.getJSON(&lt;BR /&gt; `https://local_arcgis_enterprise/arcgis/rest/services/Hosted/REST_endpoint/FeatureServer/0/query?where=longquery with loads of params.. f=pjson`,&lt;BR /&gt; function(data) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var tableData = '';&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;$.each(data.features, function(key, value) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tableData += '&amp;lt;tr&amp;gt;';&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tableData += '&amp;lt;td&amp;gt;' + value.attributes.nom_reg + '&amp;lt;/td&amp;gt;';&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tableData += '&amp;lt;td&amp;gt;' + value.attributes.nb_appel_srao + '&amp;lt;/td&amp;gt;';&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tableData += '&amp;lt;tr&amp;gt;';&lt;BR /&gt; });&lt;BR /&gt; $('#appels_srao_7jours').append(tableData);&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, we can build a Web site and use an iFrame, but it's extra data to load and to put in place.&lt;/P&gt;&lt;P&gt;It does work in Preview mode, but as stated, the script part is remove at save.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2020 13:42:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500701#M2520</guid>
      <dc:creator>StephaneLefebvre</dc:creator>
      <dc:date>2020-10-02T13:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500702#M2521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For security reasons and to prevent collisions with the javascript hub site runtime we do not currently allow scripts. The iframe method you mentioned is the way to do this. We do have a table data visualization on our backlog!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2020 13:47:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/500702#M2521</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-10-02T13:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/1087836#M4704</link>
      <description>&lt;P&gt;JavaScript would be useful to allow use of 'read more' buttons, rather than having to rely on accordions all the time.&lt;BR /&gt;E.g. &lt;A href="https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_read_more" target="_self"&gt;https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_read_more&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 10:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/1087836#M4704</guid>
      <dc:creator>DataOfficer</dc:creator>
      <dc:date>2021-08-11T10:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Embed HTML/JavaScript into ArcGIS Hub Webpage</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/1220862#M5420</link>
      <description>&lt;P&gt;I support the notion of some form of JS, or make it Arcade if you need, but some method of pulling external data/text into the page. From our perspective, we're aiming to share data and text from our other enterprise environments, and, to not require our staff to duplicate their efforts and copy/paste or rewrite content. I would like the ability to pull data from both our GIS other enterprise applications dynamically.&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 20:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/embed-html-javascript-into-arcgis-hub-webpage/m-p/1220862#M5420</guid>
      <dc:creator>AbeCoughlin</dc:creator>
      <dc:date>2022-10-11T20:02:26Z</dc:date>
    </item>
  </channel>
</rss>

