<?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 Hosting ArcGIS JS API in local environment in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hosting-arcgis-js-api-in-local-environment/m-p/256357#M23780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question about ArcGIS JS API installation notes. It says to replace &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;‘[HOSTNAME_AND_PATH_TO_JSAPI&lt;/SPAN&gt;]’ with actual path where JS API is hosted locally. Instead of providing machine name, can we use location.origin with relative path following way? That way, every customer of my product will not require to update init.js/dojo.js as per installation notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;location.origin.split("//")[1] + "&amp;lt;relative path&amp;gt;/arcgis_js_api/library/3.10/3.10/js/dojo/dojo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if location.origin can give wrong path in any case e.g. due to security restrictions or some other reasons. Trying to find, in which scenario this can be failed. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 13:56:01 GMT</pubDate>
    <dc:creator>BhavinSanghani</dc:creator>
    <dc:date>2014-11-07T13:56:01Z</dc:date>
    <item>
      <title>Hosting ArcGIS JS API in local environment</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hosting-arcgis-js-api-in-local-environment/m-p/256357#M23780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question about ArcGIS JS API installation notes. It says to replace &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;‘[HOSTNAME_AND_PATH_TO_JSAPI&lt;/SPAN&gt;]’ with actual path where JS API is hosted locally. Instead of providing machine name, can we use location.origin with relative path following way? That way, every customer of my product will not require to update init.js/dojo.js as per installation notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;location.origin.split("//")[1] + "&amp;lt;relative path&amp;gt;/arcgis_js_api/library/3.10/3.10/js/dojo/dojo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if location.origin can give wrong path in any case e.g. due to security restrictions or some other reasons. Trying to find, in which scenario this can be failed. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 13:56:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hosting-arcgis-js-api-in-local-environment/m-p/256357#M23780</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2014-11-07T13:56:01Z</dc:date>
    </item>
  </channel>
</rss>

