<?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: Issues with 3.0 when Loading App in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663612#M61925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The important thing to remember is that you have to make sure that no code makes calls to the esri namespace until after the page has loaded.&amp;nbsp; Since functions don't run until they are directed to run, this makes them a safe location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an example, "dojo.addOnLoad(init)" tells your application to fire the init function as soon as dojo indicates that the page is loaded.&amp;nbsp; calls to esri.* inside init will be fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 17:27:23 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2012-08-14T17:27:23Z</dc:date>
    <item>
      <title>Issues with 3.0 when Loading App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663608#M61921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if this is a 3.0-specific problem or not, though I never saw the behavior prior to 3.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes (not always) when I load my app, the whole thing fails to load and I get a white screen.&amp;nbsp; If I click in the lower-left hand corner of IE I get an error message that 'esri' is undefined, leading me to think the call to load the API did not succeed properly (just a hunch though).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was anything changed in terms of how the API loads itself when called between 2.8 and 3.0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sadly I can't access our app using Firefox due to corporate security restrictions but I do have access to Fiddler, if that will help someone identify the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 20:39:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663608#M61921</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2012-07-06T20:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 3.0 when Loading App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663609#M61922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Same issues here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using IE8, when I convert up to to API version 3.0 or 3.1 from 2.8 I get the 'esri' is undefined error and the map hangs without displaying.&amp;nbsp; When I convert back to 2.8 it works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the kicker, when I change back to 3.x &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;STRONG&gt;without any other changes&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; the map loads fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IE8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGS 10.0 SP4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be great!!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&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=3.1" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.1&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" type="text/css" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dijit/themes/claro/claro.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/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;lt;link rel="stylesheet" type="text/css" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojox/grid/resources/Grid.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojox/grid/resources/Grid.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;lt;link rel="stylesheet" type="text/css" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojox/grid/resources/claroGrid.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dojox/grid/resources/claroGrid.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 19:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663609#M61922</guid>
      <dc:creator>JK</dc:creator>
      <dc:date>2012-08-13T19:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 3.0 when Loading App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663610#M61923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you referencing anything from the esri namespace outside of a function called by dojo.ready/addOnLoad? Due to the new way Dojo loads modules at 1.7, all references to esri.* need to be inside a function called once all modules. We should have had this in the &lt;/SPAN&gt;&lt;A href="http://helpdev.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/migration_30.htm"&gt;migrating to 3.0 doc&lt;/A&gt;&lt;SPAN&gt; but missed it. It'll be there shortly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 20:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663610#M61923</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-08-13T20:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 3.0 when Loading App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663611#M61924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes.&amp;nbsp; So within the &amp;lt;head&amp;gt; tag I have my JavaScript.&amp;nbsp; So what you're saying in the JS anytime I reference esri.* it needs to reside within a JS function?&amp;nbsp; An example below is an esri.* reference in my JS code.&amp;nbsp; The&amp;nbsp; dojo.addOnLoad(init); is the last line of my JS and resides outside of a function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var spatialRef = new esri.SpatialReference({wkid:102100});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as a reference like the line above is within a JS function{} I shouldn't get the &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;'esri' is undefined error&lt;/SPAN&gt;&lt;SPAN&gt; when using &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;STRONG&gt;/jsapi/arcgis/?v=3.x&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you referencing anything from the esri namespace outside of a function called by dojo.ready/addOnLoad? Due to the new way Dojo loads modules at 1.7, all references to esri.* need to be inside a function called once all modules. We should have had this in the &lt;A href="http://helpdev.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/migration_30.htm"&gt;migrating to 3.0 doc&lt;/A&gt; but missed it. It'll be there shortly.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 15:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663611#M61924</guid>
      <dc:creator>JK</dc:creator>
      <dc:date>2012-08-14T15:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 3.0 when Loading App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663612#M61925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The important thing to remember is that you have to make sure that no code makes calls to the esri namespace until after the page has loaded.&amp;nbsp; Since functions don't run until they are directed to run, this makes them a safe location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an example, "dojo.addOnLoad(init)" tells your application to fire the init function as soon as dojo indicates that the page is loaded.&amp;nbsp; calls to esri.* inside init will be fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 17:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663612#M61925</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-08-14T17:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with 3.0 when Loading App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663613#M61926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That helps.&amp;nbsp; Thanks to both of you for your input.&amp;nbsp; I think I found the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 18:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-3-0-when-loading-app/m-p/663613#M61926</guid>
      <dc:creator>JK</dc:creator>
      <dc:date>2012-08-14T18:56:25Z</dc:date>
    </item>
  </channel>
</rss>

