<?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: Upgrading from 2.8 to 3.1 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/upgrading-from-2-8-to-3-1/m-p/653580#M60896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That did the trick thanks. That regex expression does work - but visual studio is not very happy with the escaping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2012 20:32:11 GMT</pubDate>
    <dc:creator>KevinGooss</dc:creator>
    <dc:date>2012-08-15T20:32:11Z</dc:date>
    <item>
      <title>Upgrading from 2.8 to 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/upgrading-from-2-8-to-3-1/m-p/653578#M60894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My site breaks when i upgrade api versions from 2.8 to 3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see many posts in here that error with esri not defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i don't think that is my issue and i have taken great pains to not reference esri.* outside of dojo.ready.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue is that the api does not appear to load properly, i never even hit dojo.ready.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i have the 2.8 api I see files like this being loaded:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/dojo/dojox/gfx/svg.xd.js" rel="nofollow noopener noreferrer" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/dojo/dojox/gfx/svg.xd.js&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but when i have the 3.1 api these calls error out and i see it is trying to load that resource from here instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://myserver.com/dojox/gfx/svg.js" rel="nofollow noopener noreferrer" target="_blank"&gt;http://myserver.com/dojox/gfx/svg.js&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would it be looking local to find this? it is doing likewise for jsapi_en-us.js and Dialog.jsa nd number.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get 6 or 7 errors on load.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody seen this before?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could it have anything to do with my module path:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; 
&amp;lt;script type="text/javascript"&amp;gt;djConfig = { parseOnLoad: true,usePlainJson: true, baseUrl: "", modulePaths: { "tg": "JGF/js/jg"}}&amp;lt;/script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript" src="https://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.1"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:41:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/upgrading-from-2-8-to-3-1/m-p/653578#M60894</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2021-12-12T03:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading from 2.8 to 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/upgrading-from-2-8-to-3-1/m-p/653579#M60895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Could it have anything to do with my module path:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; 
&amp;lt;script type="text/javascript"&amp;gt;djConfig = { parseOnLoad: true,usePlainJson: true, baseUrl: "", modulePaths: { "tg": "JGF/js/jg"}}&amp;lt;/script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript" src="https://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.1"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that's likely it and the fix is outlined in our &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/migration_30.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;migrating to 3.0 doc&lt;/A&gt;&lt;SPAN&gt;. The key point is that baseUrl and modulePaths have been replaced by packages. The switch is pretty straightfoward. Details in the migration doc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/upgrading-from-2-8-to-3-1/m-p/653579#M60895</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-12T03:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading from 2.8 to 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/upgrading-from-2-8-to-3-1/m-p/653580#M60896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That did the trick thanks. That regex expression does work - but visual studio is not very happy with the escaping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 20:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/upgrading-from-2-8-to-3-1/m-p/653580#M60896</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-08-15T20:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading from 2.8 to 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/upgrading-from-2-8-to-3-1/m-p/653581#M60897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad you're in business. I don't use visual studio :).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 21:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/upgrading-from-2-8-to-3-1/m-p/653581#M60897</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-08-15T21:22:30Z</dc:date>
    </item>
  </channel>
</rss>

