<?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 getting started, require-function in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206784#M19209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached a simple example of how to initialize a map und wire up an Event handler. this works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, i have to adapt this code to initialize a map in a div, that isn't accessible at the time of the initial load of the page. the whole map-initialization und eventhandler-wiring would need to be placed in a function, that can be accessed at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how would i do that? all i tried so far was poor...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2015 08:22:48 GMT</pubDate>
    <dc:creator>georgandersson</dc:creator>
    <dc:date>2015-07-08T08:22:48Z</dc:date>
    <item>
      <title>getting started, require-function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206784#M19209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached a simple example of how to initialize a map und wire up an Event handler. this works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, i have to adapt this code to initialize a map in a div, that isn't accessible at the time of the initial load of the page. the whole map-initialization und eventhandler-wiring would need to be placed in a function, that can be accessed at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how would i do that? all i tried so far was poor...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 08:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206784#M19209</guid>
      <dc:creator>georgandersson</dc:creator>
      <dc:date>2015-07-08T08:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: getting started, require-function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206785#M19210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at &lt;A href="https://dojotoolkit.org/reference-guide/1.10/dojo/domReady.html" title="https://dojotoolkit.org/reference-guide/1.10/dojo/domReady.html"&gt;dojo/domReady! — The Dojo Toolkit - Reference Guide&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 11:54:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206785#M19210</guid>
      <dc:creator>JoshHevenor</dc:creator>
      <dc:date>2015-07-08T11:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: getting started, require-function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206786#M19211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H6&gt;As Josh has mentioned add &lt;SPAN class="s2" style="color: #b9ca4a;"&gt;&lt;SPAN style="color: #303030;"&gt;"dojo/domReady!"&lt;/SPAN&gt; &lt;SPAN style="color: #303030;"&gt;as your last require. I would also add "dojo/parser" as seen &lt;A href="http://dojotoolkit.org/reference-guide/1.10/dojo/parser.html"&gt;here&lt;/A&gt;. And as your first line user parser.parse() which can be seen in the link under "running the parser".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H6&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 12:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206786#M19211</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-07-08T12:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting started, require-function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206787#M19212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm not shure, if domReady solves this. i'm using asp.net to create an aspx-page that loads several ascx-controls depending on the users interaction. only if one specific button gets hit, the control holding the map-div is loaded. so during the initial loading of the page, the div is never accessible...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 07:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206787#M19212</guid>
      <dc:creator>georgandersson</dc:creator>
      <dc:date>2015-07-09T07:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: getting started, require-function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206788#M19213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may have missunderstood. Here's a sample of how to create the div and map from scratch after the page is loaded:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/gvwkzgu9/9/" title="http://jsfiddle.net/gvwkzgu9/9/"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 11:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-started-require-function/m-p/206788#M19213</guid>
      <dc:creator>JoshHevenor</dc:creator>
      <dc:date>2015-07-09T11:44:40Z</dc:date>
    </item>
  </channel>
</rss>

