<?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: How to install JavaScript API SDK as local files not via a web server in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-install-javascript-api-sdk-as-local-files/m-p/358425#M33216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ken,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your response. I think I am automatically using location.protocol = file by specifying the relative path to the libraries. I got it to work in the following ways so that I would not hard my server IP address and port number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In init.js, I did this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; .... baseUrl:(location.protocol === 'file:' ? 'http:' : location.protocol) + '//' + "../../../../arcgis_js_api/library/3.3/jsapi/js/dojo/dojo" ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; .... baseUrl:(location.protocol === 'file:' ? 'http:' : location.protocol) + '//' + "127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/dojo/dojo" ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my JavaScript code, I did this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="../../arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/claro/claro.css"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="../../arcgis_js_api/library/3.3/jsapi/js/esri/css/esri.css"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;script type="text/javascript" src="../../arcgis_js_api/library/3.3/jsapi/init.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/claro/claro.css" rel="nofollow" target="_blank"&gt;http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/claro/claro.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/esri/css/esri.css" rel="nofollow" target="_blank"&gt;http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;script type="text/javascript" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/init.js" rel="nofollow" target="_blank"&gt;http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/init.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For other developers who have the similar need, adjust the relative path depending on where the libraries are installed/located.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 22:20:34 GMT</pubDate>
    <dc:creator>DavidIp</dc:creator>
    <dc:date>2013-04-17T22:20:34Z</dc:date>
    <item>
      <title>How to install JavaScript API SDK as local files not via a web server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-install-javascript-api-sdk-as-local-files/m-p/358423#M33214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I installed the JavaScript API SDK 3.3 successfully on my Python server (no Internet) by replacing [HOSTNAME_AND_PATH_TO_JSAPI] with "127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I realized that I cannot hard code the IP address and port number in the init.js because my server is configurable based on a config file during the start-up sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I install the SDK in such an environment? Is it true that the location.protocol is default to "http:"? Do you think making location.protocol equal to "file:" will work? And what do I enter in the [HOSTNAME_AND_PATH_TO_JSAPI]? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 22:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-install-javascript-api-sdk-as-local-files/m-p/358423#M33214</guid>
      <dc:creator>DavidIp</dc:creator>
      <dc:date>2013-04-16T22:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to install JavaScript API SDK as local files not via a web server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-install-javascript-api-sdk-as-local-files/m-p/358424#M33215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would suspect it would just be an url, so using a "file" url might work, but they do have to be formatted just so...&amp;nbsp; This might help get you pointed in the right direction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/q/12711584/369843"&gt;http://stackoverflow.com/q/12711584/369843&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ken.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 14:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-install-javascript-api-sdk-as-local-files/m-p/358424#M33215</guid>
      <dc:creator>KenBurcham</dc:creator>
      <dc:date>2013-04-17T14:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to install JavaScript API SDK as local files not via a web server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-install-javascript-api-sdk-as-local-files/m-p/358425#M33216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ken,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your response. I think I am automatically using location.protocol = file by specifying the relative path to the libraries. I got it to work in the following ways so that I would not hard my server IP address and port number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In init.js, I did this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; .... baseUrl:(location.protocol === 'file:' ? 'http:' : location.protocol) + '//' + "../../../../arcgis_js_api/library/3.3/jsapi/js/dojo/dojo" ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; .... baseUrl:(location.protocol === 'file:' ? 'http:' : location.protocol) + '//' + "127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/dojo/dojo" ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my JavaScript code, I did this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="../../arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/claro/claro.css"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="../../arcgis_js_api/library/3.3/jsapi/js/esri/css/esri.css"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;script type="text/javascript" src="../../arcgis_js_api/library/3.3/jsapi/init.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/claro/claro.css" rel="nofollow" target="_blank"&gt;http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/claro/claro.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/esri/css/esri.css" rel="nofollow" target="_blank"&gt;http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;script type="text/javascript" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/init.js" rel="nofollow" target="_blank"&gt;http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/init.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For other developers who have the similar need, adjust the relative path depending on where the libraries are installed/located.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 22:20:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-install-javascript-api-sdk-as-local-files/m-p/358425#M33216</guid>
      <dc:creator>DavidIp</dc:creator>
      <dc:date>2013-04-17T22:20:34Z</dc:date>
    </item>
  </channel>
</rss>

