<?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: Installing the ArcGIS JavaScript 3.1 API library on an IIS Web Server in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505543#M46964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like someone forgot to include the handlers in the zip, unless something radical has changed, the ones from v3.0 should be fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Sharath - default.ashx is the one for you, place the file under the jsapi directory (or jsapicompact if you're using the compact build) then set the default document in IIS for that directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. this is pretty poor, especially since additionally, as correctly observed above, the instructions are invalid i.e. the [HOSTNAME_AND_PATH_TO_JSAPI] strings aren't present.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.P.S. You can avoid this (URL replacement) step anyway if you correctly set the baseUrl up-front.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 09:47:33 GMT</pubDate>
    <dc:creator>__Rich_</dc:creator>
    <dc:date>2012-08-07T09:47:33Z</dc:date>
    <item>
      <title>Installing the ArcGIS JavaScript 3.1 API library on an IIS Web Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505540#M46961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there an updated installation manual for local deployment of ArcGIS JavaScript 3.1 API library ? The following instructions in the manual appear to be no longer valid:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Configuration options for normal build:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.1\jsapi\init.js in a text editor and search for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replace this text with "&amp;lt;myserver&amp;gt;/arcgis_js_api/library/3.1/jsapi/"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.1\jsapi\js\dojo\dojo\dojo.js in a text editor and search for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replace this text with "&amp;lt;myserver&amp;gt;/arcgis_js_api/library/3.1/jsapi/"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.1\jsapi\js\dojo\dojo\dojo.js.uncompressed.js in a text editor and search for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replace this text with "&amp;lt;myserver&amp;gt;/arcgis_js_api/library/3.1/jsapi/"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me out in this regard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 22:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505540#M46961</guid>
      <dc:creator>SharathNarasimhan</dc:creator>
      <dc:date>2012-08-06T22:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Installing the ArcGIS JavaScript 3.1 API library on an IIS Web Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505541#M46962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the text in v3.0 is "[HOSTNAME_AND_PATH_TO_JSAPI]js/dojo/dojo",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but in v3.1 is "serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojo",maybe the newly instruction hasn't updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't find "dojo.js.uncompressed.js " in v3.1, and I found the file v3.1 is 15MB,but v3.0 is 26MB, any error?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 04:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505541#M46962</guid>
      <dc:creator>gaolei</dc:creator>
      <dc:date>2012-08-07T04:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Installing the ArcGIS JavaScript 3.1 API library on an IIS Web Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505542#M46963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Well yes, there is no "dojo.js.uncompressed.js " in v3.1. I get an error saying dojo is undefined, since the &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;my_server&amp;gt;/arcgis_js_api/library/3.1/jsapi/?v=3.1" is not accessible. (Because there is no default.ashx / index.jsp files ?)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I found the text in v3.0 is "[HOSTNAME_AND_PATH_TO_JSAPI]js/dojo/dojo",&lt;BR /&gt;but in v3.1 is "serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojo",maybe the newly instruction hasn't updated.&lt;BR /&gt;&lt;BR /&gt;I can't find "dojo.js.uncompressed.js " in v3.1, and I found the file v3.1 is 15MB,but v3.0 is 26MB, any error?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 05:57:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505542#M46963</guid>
      <dc:creator>SharathNarasimhan</dc:creator>
      <dc:date>2012-08-07T05:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Installing the ArcGIS JavaScript 3.1 API library on an IIS Web Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505543#M46964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like someone forgot to include the handlers in the zip, unless something radical has changed, the ones from v3.0 should be fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Sharath - default.ashx is the one for you, place the file under the jsapi directory (or jsapicompact if you're using the compact build) then set the default document in IIS for that directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. this is pretty poor, especially since additionally, as correctly observed above, the instructions are invalid i.e. the [HOSTNAME_AND_PATH_TO_JSAPI] strings aren't present.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.P.S. You can avoid this (URL replacement) step anyway if you correctly set the baseUrl up-front.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 09:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505543#M46964</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-07T09:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Installing the ArcGIS JavaScript 3.1 API library on an IIS Web Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505544#M46965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To install it u have to replace 'serverapi.arcgisonline.com' with your path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as example you have then&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yourserver.de/jsapi/arcgis/3.1/js/dojo/dojo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yourserver.de/libraries/jsapi/3.1/jsapicompact/js/dojo/dojo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this should be made in the files init.js and js/dojo/dojo/dojo.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to include the jsapi include 'yourserver.de/libraries/jsapi/3.1/jsapicompact/init.js' or if you want to do it like the other versions &amp;lt; 3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;create a file you want &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for php:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?php
header("Content-type:application/x-javascript");
readfile("js/dojo/dojo/dojo.js");
readfile("js/esri/jsapi.js");
?&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for .net:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;%@ WebHandler Language="C#" Class="jsapi" %&amp;gt;

using System;
using System.Web;
using System.IO;

public class jsapi : IHttpHandler {
&amp;nbsp; public void ProcessRequest (HttpContext context) {
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // GZIP if supported
&amp;nbsp;&amp;nbsp;&amp;nbsp; string AcceptEncoding = HttpContext.Current.Request.Headers["Accept-Encoding"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!string.IsNullOrEmpty(AcceptEncoding) &amp;amp;&amp;amp; AcceptEncoding.Contains("gzip")) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context.Response.AppendHeader("Content-Encoding", "gzip");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context.Response.Filter = new System.IO.Compression.GZipStream(context.Response.Filter, System.IO.Compression.CompressionMode.Compress);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; context.Response.ContentType = "application/x-javascript";
&amp;nbsp;&amp;nbsp;&amp;nbsp; context.Response.Expires = 1800;

&amp;nbsp;&amp;nbsp;&amp;nbsp; context.Response.WriteFile(context.Server.MapPath("js\\dojo\\dojo\\dojo.js"));
&amp;nbsp;&amp;nbsp;&amp;nbsp; context.Response.WriteFile(context.Server.MapPath("js\\esri\\jsapi.js"));
&amp;nbsp; }
 
&amp;nbsp; public bool IsReusable {
&amp;nbsp;&amp;nbsp;&amp;nbsp; get {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or for JSP:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;%@page contentType="application/x-javascript; charset=utf-8" session="false" %&amp;gt;
&amp;lt;jsp:include page="js/dojo/dojo/dojo.js" /&amp;gt;
&amp;lt;jsp:include page="js/esri/jsapi.js" /&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;save your createt file and set it as default for that path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you can call the jsapi 'yourserver.de/libraries/jsapi/3.1/jsapicompact/'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505544#M46965</guid>
      <dc:creator>JanJeske</dc:creator>
      <dc:date>2021-12-11T22:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Installing the ArcGIS JavaScript 3.1 API library on an IIS Web Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505545#M46966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the replies. Adding the web handler and replacing the URLs in files init.js and dojo.js seems to work for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 14:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/installing-the-arcgis-javascript-3-1-api-library/m-p/505545#M46966</guid>
      <dc:creator>SharathNarasimhan</dc:creator>
      <dc:date>2012-08-07T14:10:54Z</dc:date>
    </item>
  </channel>
</rss>

