<?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: queryTask is undefined in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340827#M31551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out the issue with the zoom function. I had to change the service for the querytask to point to my cached service instead of my dynamic service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 May 2010 18:47:20 GMT</pubDate>
    <dc:creator>JuneAcosta</dc:creator>
    <dc:date>2010-05-24T18:47:20Z</dc:date>
    <item>
      <title>queryTask is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340823#M31547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have code that I have put together from different samples that have been posted. I'm trying to get the map to zoom to a point that is selected from the combo box. The code fails at this line..... queryTask.execute(neighQuery, zoomNeighborhoodResults);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to use the firefox/firebug... I put a breakpoint at the line before it one step through it nothing happens, but this could be a a user issue too. Here's the code- I appreciate any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 20:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340823#M31547</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2010-05-21T20:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340824#M31548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make queryTask a global variable (like your map, trailsCached and resizeTimer variables). Currently, you define queryTask in init() and then try to reference it in neighQuery(). This doesn't work because queryTask is not defined in neighQuery's scope.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 23:11:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340824#M31548</guid>
      <dc:creator>DerekSwingley</dc:creator>
      <dc:date>2010-05-21T23:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340825#M31549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the reason you got is you haven't define the querytask in your current function("zoomNeighborhood").&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make it as a globle varient...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 May 2010 23:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340825#M31549</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-05-23T23:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340826#M31550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you- that resolved the issue. Now I am having an issue with zooming to the selected marker in the drop down. The map zooms out to the full extent of all the features, but not to the selected. I got this code from a previous post so maybe I copied it wrong. Could you please provide some help on the zoomNeighborhood function?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 15:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340826#M31550</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2010-05-24T15:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340827#M31551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out the issue with the zoom function. I had to change the service for the querytask to point to my cached service instead of my dynamic service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 18:47:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-is-undefined/m-p/340827#M31551</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2010-05-24T18:47:20Z</dc:date>
    </item>
  </channel>
</rss>

