<?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: Noob question: How to access the js API? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/noob-question-how-to-access-the-js-api/m-p/228924#M21362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to wait until all the resources that you've required have finished downloading, in that sample that Derek provided notice the:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;dojo.addOnLoad(init);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;line, that causes the init function to be called after all resources are available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://dojotoolkit.org/reference-guide/1.7/dojo/ready.html#dojo-ready" rel="nofollow" target="_blank"&gt;dojo.ready&lt;/A&gt;&lt;SPAN&gt; is preferred these days...or the AMD approach once the JSAPI moves to it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2012 14:46:14 GMT</pubDate>
    <dc:creator>__Rich_</dc:creator>
    <dc:date>2012-09-06T14:46:14Z</dc:date>
    <item>
      <title>Noob question: How to access the js API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/noob-question-how-to-access-the-js-api/m-p/228921#M21359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I apologize for the raw n00bness, but I have been searching the help area, documentation, and forums for 45 minutes, and I've come up empty. What do you need to do to get access to the API objects? Based on the examples I've looked at, I included this script&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;element in the head of my page:&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=2.3" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis?v=2.3&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;But execution crashes on the first reference to the esri namespace. Clearly there is something this API beginner does not understand.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 13:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/noob-question-how-to-access-the-js-api/m-p/228921#M21359</guid>
      <dc:creator>DonRea</dc:creator>
      <dc:date>2012-09-06T13:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Noob question: How to access the js API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/noob-question-how-to-access-the-js-api/m-p/228922#M21360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Start with any of our samples:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance, you can start with a simple topo map example:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/map_topo.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/map_topo.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We also have getting started docs:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_devenv.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_devenv.htm&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_accessapi.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_accessapi.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 14:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/noob-question-how-to-access-the-js-api/m-p/228922#M21360</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-09-06T14:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Noob question: How to access the js API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/noob-question-how-to-access-the-js-api/m-p/228923#M21361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But I am already including a script element referring to the hosted API, as I said. These are the first two lines of my own scripting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.require ("esri.map");
var startExtent = new esri.geometry.Extent (2660574.997050, 204651.048340, 2750112.778497, 304942.427600, new esri.SpatialReference ({wkd : 102100}));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Execution halts on the second line with the error, "esri is not defined" The doc you pointed to, and the examples, and all the examples I looked at before posting, seem to indicate that having that script element is all that's required.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:07:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/noob-question-how-to-access-the-js-api/m-p/228923#M21361</guid>
      <dc:creator>DonRea</dc:creator>
      <dc:date>2021-12-11T11:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Noob question: How to access the js API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/noob-question-how-to-access-the-js-api/m-p/228924#M21362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to wait until all the resources that you've required have finished downloading, in that sample that Derek provided notice the:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;dojo.addOnLoad(init);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;line, that causes the init function to be called after all resources are available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://dojotoolkit.org/reference-guide/1.7/dojo/ready.html#dojo-ready" rel="nofollow" target="_blank"&gt;dojo.ready&lt;/A&gt;&lt;SPAN&gt; is preferred these days...or the AMD approach once the JSAPI moves to it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 14:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/noob-question-how-to-access-the-js-api/m-p/228924#M21362</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-09-06T14:46:14Z</dc:date>
    </item>
  </channel>
</rss>

