<?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 Installing ArcGIS Javascript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-arcgis-javascript-api/m-p/168201#M15592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When installing ArcGIS Javascript API, how do I specify the server url for the child modules?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The main modules loaded by the handler (default.ashx) have the correct url (e.g. &lt;/SPAN&gt;&lt;A href="http://servername/library/3.1/jsapi"&gt;http://servername/library/3.1/jsapi&lt;/A&gt;&lt;SPAN&gt;), but the child modules still get loaded from the serverapi.arcgisonline.com, e.g. &lt;/SPAN&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojox/gfx/svg.js"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojox/gfx/svg.js&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The installation guide mentioned the following, do I need ArcGIS Server for this?&amp;nbsp; I have ArcGIS Server 10.1 installed, with the web adapter, but I couldn't find where to configure this.&amp;nbsp; Do you mind explaining how it works and how to configure it? Thanks a lot in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;�?�Change the ArcGIS Services Directory "View In JavaScript" URL. Instructions are given in "Configuring the REST API" in the ArcGIS Server REST SDK. On Windows, the location is &amp;lt;Installation Location&amp;gt;\DeveloperKit\Help\REST\index.html. On UNIX and Linux, the location is &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;:8399/&amp;lt;instance&amp;gt;/sdk/rest/index.html where myserver is your server name and instance is the instance name (jsapi is the default). �?�Find the "JavaScript API" section for either .NET or Java for more information about parameter values.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�?�For .NET, the parameters to change in rest.config are &amp;lt;ArcGIS&amp;gt; and &amp;lt;ArcGISCSS&amp;gt;. Replace serverapi.arcgisonline.com with your server domain name. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�?�For Java, the parameters to change in rest-config.properties are jsapi.arcgis and jsapi.arcgis.css. Replace serverapi.arcgisonline.com with your server domain name. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Feichi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2012 01:02:10 GMT</pubDate>
    <dc:creator>FeichiShih</dc:creator>
    <dc:date>2012-08-10T01:02:10Z</dc:date>
    <item>
      <title>Installing ArcGIS Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-arcgis-javascript-api/m-p/168201#M15592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When installing ArcGIS Javascript API, how do I specify the server url for the child modules?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The main modules loaded by the handler (default.ashx) have the correct url (e.g. &lt;/SPAN&gt;&lt;A href="http://servername/library/3.1/jsapi"&gt;http://servername/library/3.1/jsapi&lt;/A&gt;&lt;SPAN&gt;), but the child modules still get loaded from the serverapi.arcgisonline.com, e.g. &lt;/SPAN&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojox/gfx/svg.js"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojox/gfx/svg.js&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The installation guide mentioned the following, do I need ArcGIS Server for this?&amp;nbsp; I have ArcGIS Server 10.1 installed, with the web adapter, but I couldn't find where to configure this.&amp;nbsp; Do you mind explaining how it works and how to configure it? Thanks a lot in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;�?�Change the ArcGIS Services Directory "View In JavaScript" URL. Instructions are given in "Configuring the REST API" in the ArcGIS Server REST SDK. On Windows, the location is &amp;lt;Installation Location&amp;gt;\DeveloperKit\Help\REST\index.html. On UNIX and Linux, the location is &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;:8399/&amp;lt;instance&amp;gt;/sdk/rest/index.html where myserver is your server name and instance is the instance name (jsapi is the default). �?�Find the "JavaScript API" section for either .NET or Java for more information about parameter values.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�?�For .NET, the parameters to change in rest.config are &amp;lt;ArcGIS&amp;gt; and &amp;lt;ArcGISCSS&amp;gt;. Replace serverapi.arcgisonline.com with your server domain name. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�?�For Java, the parameters to change in rest-config.properties are jsapi.arcgis and jsapi.arcgis.css. Replace serverapi.arcgisonline.com with your server domain name. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Feichi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 01:02:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-arcgis-javascript-api/m-p/168201#M15592</guid>
      <dc:creator>FeichiShih</dc:creator>
      <dc:date>2012-08-10T01:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Installing ArcGIS Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-arcgis-javascript-api/m-p/168202#M15593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it working now by updating the baseUrl in dojo.js:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;baseUrl: (location.protocol === 'file:' ? 'http:': location.protocol) + '//' + "&amp;lt;server path&amp;gt;/jsapi/js/dojo/dojo",&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 15:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-arcgis-javascript-api/m-p/168202#M15593</guid>
      <dc:creator>FeichiShih</dc:creator>
      <dc:date>2012-08-10T15:55:26Z</dc:date>
    </item>
  </channel>
</rss>

