<?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 undefined in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698164#M65013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having a similar issue.&amp;nbsp; Some machines will receive this error intermittently in IE6, and the 1st time they log onto the page in IE8.&amp;nbsp; It seems to be fine in Chrome and FF though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking on the web, there seems to be a history of this in dojo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Old bug report which was resolved: &lt;/SPAN&gt;&lt;A href="http://bugs.dojotoolkit.org/ticket/2280"&gt;http://bugs.dojotoolkit.org/ticket/2280&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Slow connections?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.novell.com/novell-product-support-forums/identity-manager/im-userapp-workflow/389077-error-ie-6-0-dojo-undefined.html"&gt;http://forums.novell.com/novell-product-support-forums/identity-manager/im-userapp-workflow/389077-error-ie-6-0-dojo-undefined.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not exactly sure what it is, but I'd like to get rid of it.&amp;nbsp; Does anyone have a workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also is v2.1 the new version? is it safe to use with 9.3.1?&amp;nbsp; The documentation for 9.3.1 doesn't make a reference to that one. (&lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_dojo.htm"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_dojo.htm&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 20:35:47 GMT</pubDate>
    <dc:creator>GeoffreyMahase</dc:creator>
    <dc:date>2010-10-21T20:35:47Z</dc:date>
    <item>
      <title>dojo is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698162#M65011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have developed a fairly simple Javascript based website that shows fine on my development box.&amp;nbsp; However, if the same site is accessed from another machine, the map disappears and I get the 'dojo is undefined error'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I moved the code to our server and I am getting similar results.&amp;nbsp; I can see the page if I am logged on the server, but if I try and access from another machine, same error as above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a configuration file that I am missing here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appreciate the help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 16:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698162#M65011</guid>
      <dc:creator>MichaelRose</dc:creator>
      <dc:date>2010-09-22T16:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698163#M65012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A couple of items you will want to check.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Are you hosting the JavaScript API locally or using the library hosted on ESRI's website?&amp;nbsp; I recommend using ESRI's library while you work through this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(example - this using ESRI's library)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1&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;(example - this not using ESRI's library)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript" src="&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;/arcgis_js_api/library/2.0/arcgis/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Make sure all your JavaScript files live on the web server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) It may be helpful to update this forum including the URL you're using to access the page and also the JavaScript code found in your header.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug Carroll, ESRI Support Services SDK Team &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/"&gt;http://support.esri.com/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 22:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698163#M65012</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-09-22T22:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698164#M65013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having a similar issue.&amp;nbsp; Some machines will receive this error intermittently in IE6, and the 1st time they log onto the page in IE8.&amp;nbsp; It seems to be fine in Chrome and FF though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking on the web, there seems to be a history of this in dojo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Old bug report which was resolved: &lt;/SPAN&gt;&lt;A href="http://bugs.dojotoolkit.org/ticket/2280"&gt;http://bugs.dojotoolkit.org/ticket/2280&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Slow connections?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.novell.com/novell-product-support-forums/identity-manager/im-userapp-workflow/389077-error-ie-6-0-dojo-undefined.html"&gt;http://forums.novell.com/novell-product-support-forums/identity-manager/im-userapp-workflow/389077-error-ie-6-0-dojo-undefined.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not exactly sure what it is, but I'd like to get rid of it.&amp;nbsp; Does anyone have a workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also is v2.1 the new version? is it safe to use with 9.3.1?&amp;nbsp; The documentation for 9.3.1 doesn't make a reference to that one. (&lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_dojo.htm"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_dojo.htm&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 20:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698164#M65013</guid>
      <dc:creator>GeoffreyMahase</dc:creator>
      <dc:date>2010-10-21T20:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698165#M65014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael, try use the &lt;/SPAN&gt;&lt;A href="http://getfirebug.com/errors"&gt;Firebug&lt;/A&gt;&lt;SPAN&gt; in FF and view what's the problem exactly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Review any extra comma in the js file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having a similar issue.&amp;nbsp; Some machines will receive this error intermittently in IE6, and the 1st time they log onto the page in IE8.&amp;nbsp; It seems to be fine in Chrome and FF though.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In IE the most common answer for this behavior is a extra comma in client/application.js file&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 20:55:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698165#M65014</guid>
      <dc:creator>HeribertoMantilla_Santamaría</dc:creator>
      <dc:date>2010-10-21T20:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698166#M65015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;probably wont be able to find the errors in firefox with firebug since you're not getting errors in that browser. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however, you can get and use firebug lite in IE, and it may be robust enough to get you an answer in IE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 21:01:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698166#M65015</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-10-21T21:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698167#M65016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But Michael doesn't specify that bug only happens in IE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 21:26:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698167#M65016</guid>
      <dc:creator>HeribertoMantilla_Santamaría</dc:creator>
      <dc:date>2010-10-21T21:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698168#M65017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having a similar issue. Some machines will receive this error intermittently in IE6, and the 1st time they log onto the page in IE8. It seems to be fine in Chrome and FF though.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yeah he did &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; although i didn't notice that IE 6 was only intermittently. anyway... good luck with finding a solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 21:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698168#M65017</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-10-21T21:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698169#M65018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My 2 cent for dojo not defined:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Application works on development-machine #1 and not on production-machine #2 with the same browser: Often an issue of different domains. The JS-API has to be configured with FQDN, the application also. Test it with a simple client to get to know if it's an application issue or a system-environment issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Application works on browser #1 but not on IE: Often a problem of the application code. Missing commas, semicolons, forgotten var declarations. Firefox walks over this issues, IE doesn't. Strip down the application, comment functionality to get to know where and when the error occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 07:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698169#M65018</guid>
      <dc:creator>AxelSchaefer</dc:creator>
      <dc:date>2010-10-22T07:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: dojo is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698170#M65019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I resolved my issue.&amp;nbsp; I was mistaken about it being the dojo is undefined error, I was conflating it with the dojo.body() is null or undefined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically what I was doing was that I was working with templated widgets and initializing the member variables to esri items. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.provide("blah.BlahBlah");

dojo.require("dijit._Widget");
dojo.require("dijit._Templated");

dojo.declare("blah.BlahBlah", [dijit._Widget, dijit._Templated],
&amp;nbsp; templateString: "&amp;lt;div style='display: none;'&amp;gt;&amp;lt;/div&amp;gt;",
&amp;nbsp; hover: new esri.layers.GraphicsLayer({id:"hover"}),
&amp;nbsp; ...
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seemed to cause a race condition in IE.&amp;nbsp; Moving that initialization to startup seemed to resolve the issue.&amp;nbsp; I'm still testing this, but it seems to have fixed it for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-is-undefined/m-p/698170#M65019</guid>
      <dc:creator>GeoffreyMahase</dc:creator>
      <dc:date>2021-12-12T05:22:44Z</dc:date>
    </item>
  </channel>
</rss>

