<?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 problems with - dojo.connect(map, &amp;amp;amp;quot;onLoad&amp;amp;amp;quot;, initFunctionality); in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-with-dojo-connect-map-amp-amp-quot-onload/m-p/167049#M15501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having some problems combining the below samples&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html&lt;/A&gt;&lt;SPAN&gt; (Map Container Split in Three (Headline)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html&lt;/A&gt;&lt;SPAN&gt; (Identify features on a map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html&lt;/A&gt;&lt;SPAN&gt; (dojo datagrid)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i've been able to do is combine the dojo datagrid sample to the Map Constrainer Split in Three sample, but i've hit a sticking point in trying in intergrate the ID feature on a map, sample. The problem revolves around 'dojo.connect(map, "onLoad", initFunctionality);' when i try to add it ****here**** or anywhere around this area of my code i loss my map! I've been playing around but cant seem to work it out. Help! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what i've got....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.dijit"); // optimize: load dijit layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.BorderContainer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.ContentPane");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.AccordionContainer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.map");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dojox.grid.DataGrid");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dojo.data.ItemFileReadStore");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.tasks.find");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.TabContainer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.form.Button");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.Toolbar");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.tasks.identify");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var map, identifyTask, identifyParams, symbol, findTask, findParams, navToolbar, startExtent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var grid, store; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var layer2results, layer3results, layer4results;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//this global object contains all references needed across functions&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var globals = {};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function init() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;****here****&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(grid, "onRowClick", onRowClickHandler);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;****and tried it here****&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Create map and add the ArcGIS Online imagery layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;startExtent = new esri.geometry.Extent(463948.200042408, 163659.035896198, 521987.007515106, 189429.504103801, new esri.SpatialReference({wkid:27700}));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;****and tried it here****&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map = new esri.Map("map", { extent: startExtent });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;full code attached&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Sep 2010 09:08:27 GMT</pubDate>
    <dc:creator>simonmiles</dc:creator>
    <dc:date>2010-09-01T09:08:27Z</dc:date>
    <item>
      <title>problems with - dojo.connect(map, &amp;amp;quot;onLoad&amp;amp;quot;, initFunctionality);</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-with-dojo-connect-map-amp-amp-quot-onload/m-p/167049#M15501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having some problems combining the below samples&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html&lt;/A&gt;&lt;SPAN&gt; (Map Container Split in Three (Headline)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html&lt;/A&gt;&lt;SPAN&gt; (Identify features on a map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_selectionmode.html&lt;/A&gt;&lt;SPAN&gt; (dojo datagrid)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i've been able to do is combine the dojo datagrid sample to the Map Constrainer Split in Three sample, but i've hit a sticking point in trying in intergrate the ID feature on a map, sample. The problem revolves around 'dojo.connect(map, "onLoad", initFunctionality);' when i try to add it ****here**** or anywhere around this area of my code i loss my map! I've been playing around but cant seem to work it out. Help! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what i've got....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.dijit"); // optimize: load dijit layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.BorderContainer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.ContentPane");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.AccordionContainer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.map");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dojox.grid.DataGrid");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dojo.data.ItemFileReadStore");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.tasks.find");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.TabContainer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.form.Button");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.Toolbar");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.tasks.identify");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var map, identifyTask, identifyParams, symbol, findTask, findParams, navToolbar, startExtent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var grid, store; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var layer2results, layer3results, layer4results;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//this global object contains all references needed across functions&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var globals = {};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function init() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;****here****&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(grid, "onRowClick", onRowClickHandler);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;****and tried it here****&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Create map and add the ArcGIS Online imagery layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;startExtent = new esri.geometry.Extent(463948.200042408, 163659.035896198, 521987.007515106, 189429.504103801, new esri.SpatialReference({wkid:27700}));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;****and tried it here****&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map = new esri.Map("map", { extent: startExtent });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;full code attached&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 09:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-with-dojo-connect-map-amp-amp-quot-onload/m-p/167049#M15501</guid>
      <dc:creator>simonmiles</dc:creator>
      <dc:date>2010-09-01T09:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: problems with - dojo.connect(map, "onLoad", initFunctionality);</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-with-dojo-connect-map-amp-amp-quot-onload/m-p/167050#M15502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you cannot call map.onLoad() until after you initialize the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try placing it after&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map = new esri.Map("map", { extent: startExtent });&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problems-with-dojo-connect-map-amp-amp-quot-onload/m-p/167050#M15502</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2011-04-28T14:34:07Z</dc:date>
    </item>
  </channel>
</rss>

