<?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: dojo is not defined in installing jsapi2.6 on tomcat in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-not-defined-in-installing-jsapi2-6-on/m-p/752190#M69536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It sounds like you're referencing the API correctly then. Can you open a ticket with support? They're better with server configuration issues like this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2012 01:35:32 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-03-05T01:35:32Z</dc:date>
    <item>
      <title>dojo is not defined in installing jsapi2.6 on tomcat</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-not-defined-in-installing-jsapi2-6-on/m-p/752187#M69533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i have copied ArcGIS JSAPI 2.6&amp;nbsp; to tomcat 6.0, and searched for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replaced this text with "localhost:8080/arcgis_js_api/library/2.6/arcgis/" of all the files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but when i use the test code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&amp;gt;
&amp;lt;html&amp;gt;
 &amp;lt;head&amp;gt;
&amp;nbsp; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&amp;gt;
&amp;nbsp; &amp;lt;title&amp;gt;Simple Map&amp;lt;/title&amp;gt;
&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="http://localhost:8080/arcgis_js_api/library/2.6/jsapi/js/dojo/dijit/themes/tundra/tundra.css"/&amp;gt;
&amp;nbsp; &amp;lt;script type="text/javascript" src="http://localhost:8080/arcgis_js_api/library/2.6/jsapi/"&amp;gt;&amp;lt;/script&amp;gt;
&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;
&amp;nbsp;&amp;nbsp; dojo.require("esri.map");
&amp;nbsp;&amp;nbsp; function init() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var myMap = new esri.Map("mapDiv");
&amp;nbsp;&amp;nbsp;&amp;nbsp; //note that if you do not have public Internet access then you will need to point this url to your own locally accesible cached service.
&amp;nbsp;&amp;nbsp;&amp;nbsp; var myTiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/NGS_Topo_US_2D/MapServer");
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.addLayer(myTiledMapServiceLayer);
&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp; dojo.addOnLoad(init);

&amp;nbsp; &amp;lt;/script&amp;gt;
 &amp;lt;/head&amp;gt;
 &amp;lt;body class="tundra"&amp;gt;
&amp;nbsp; &amp;lt;div id="mapDiv" style="width:900px; height:600px; border:1px solid #000;"&amp;gt;&amp;lt;/div&amp;gt;
 &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;it throw an error like this:"Uncaught SyntaxError: Unexpected identifier&amp;nbsp; , dojo is not defined".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but if i use the jdk 1.5&amp;nbsp; ,it not throw any error,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i means the error "dojo is not defined " only throwed in the environment of jdk 1.6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so ,can you help me to solve the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thx?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2012 05:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-not-defined-in-installing-jsapi2-6-on/m-p/752187#M69533</guid>
      <dc:creator>taopy</dc:creator>
      <dc:date>2012-03-04T05:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is not defined in installing jsapi2.6 on tomcat</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-not-defined-in-installing-jsapi2-6-on/m-p/752188#M69534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What happens when you load &lt;/SPAN&gt;&lt;A href="http://localhost:8080/arcgis_js_api/library/2.6/jsapi/"&gt;http://localhost:8080/arcgis_js_api/library/2.6/jsapi/&lt;/A&gt;&lt;SPAN&gt; in your browser?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2012 18:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-not-defined-in-installing-jsapi2-6-on/m-p/752188#M69534</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-03-04T18:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is not defined in installing jsapi2.6 on tomcat</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-not-defined-in-installing-jsapi2-6-on/m-p/752189#M69535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What happens when you load &lt;A href="http://localhost:8080/arcgis_js_api/library/2.6/jsapi/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/arcgis_js_api/library/2.6/jsapi/&lt;/A&gt; in your browser?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i load this url in chrome ,it responses a page with js like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/*
 Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
 Available via Academic Free License &amp;gt;= 2.1 OR the modified BSD license.
 see: http://dojotoolkit.org/license for details
*/

/*
 This is an optimized version of Dojo, built for deployment and not for
 development. To get sources and documentation, please visit:

&amp;nbsp; http://dojotoolkit.org
*/

(function(){var _1=null;if((_1||(typeof djConfig!="undefined"&amp;amp;&amp;amp;djConfig.scopeMap))&amp;amp;&amp;amp;(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i&amp;lt;_1.length;i++){var _7=_1&lt;I&gt;;_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";_3+=(i==0?"":",")+_7[0];_4+=(i==0?"":",")+_7[1];_5[_7[0]]=_7[1];_6[_7[1]]=_7[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(typeof this["loadFirebugConsole"]=="function"){this["loadFirebugConsole"]();}else{this.console=this.console||{};var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile",........&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; when i load this url in ie8 ,it responses a dialog to confirm to download the jsapi.js file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:56:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-not-defined-in-installing-jsapi2-6-on/m-p/752189#M69535</guid>
      <dc:creator>taopy</dc:creator>
      <dc:date>2021-12-12T07:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is not defined in installing jsapi2.6 on tomcat</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-not-defined-in-installing-jsapi2-6-on/m-p/752190#M69536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It sounds like you're referencing the API correctly then. Can you open a ticket with support? They're better with server configuration issues like this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 01:35:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-not-defined-in-installing-jsapi2-6-on/m-p/752190#M69536</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-03-05T01:35:32Z</dc:date>
    </item>
  </channel>
</rss>

