<?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: cancel a query task in javascript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368438#M34177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The execute* methods all return dojo/Deferred so you &lt;SPAN style="font-style:italic;"&gt;might&lt;/SPAN&gt; be able to call cancel() on the deferred object...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for ur replying, but what i need is cancel all the process&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;deferred object has the cancel() method, but it's not related to the query callback function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so, when query task completed, the callback function will run and it won't be able to stop by cancel(), isn't it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 04:52:41 GMT</pubDate>
    <dc:creator>kundkwong</dc:creator>
    <dc:date>2012-10-31T04:52:41Z</dc:date>
    <item>
      <title>cancel a query task in javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368436#M34175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How to cancel the querying task in the middle of query process and stop all query process. anyone help pls&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 07:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368436#M34175</guid>
      <dc:creator>kundkwong</dc:creator>
      <dc:date>2012-10-25T07:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: cancel a query task in javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368437#M34176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The execute* methods all return dojo/Deferred so you &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;might&lt;/SPAN&gt;&lt;SPAN&gt; be able to call cancel() on the deferred object...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 09:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368437#M34176</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-30T09:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: cancel a query task in javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368438#M34177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The execute* methods all return dojo/Deferred so you &lt;SPAN style="font-style:italic;"&gt;might&lt;/SPAN&gt; be able to call cancel() on the deferred object...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for ur replying, but what i need is cancel all the process&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;deferred object has the cancel() method, but it's not related to the query callback function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so, when query task completed, the callback function will run and it won't be able to stop by cancel(), isn't it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 04:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368438#M34177</guid>
      <dc:creator>kundkwong</dc:creator>
      <dc:date>2012-10-31T04:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: cancel a query task in javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368439#M34178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;deferred object has the cancel() method, but it's not related to the query callback function&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you read the dojo/Deferred documentation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The QueryTask.execute() method wraps an esri.request which in turn wraps some Dojo AJAX (XHR and IO) stuff, the Dojo components support cancel() using the approach I described.&amp;nbsp; Whether or not the wrappers above those components permit cancel() to work as it should I have no idea e.g. IIRC you're supposed to pass a "canceller" to the deferred constructor and I think I may have seen a canceller being passed somewhere in the depths of the Esri code...(in Dojo 1.8 there's a default canceller)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you should try it?&amp;nbsp; (I recommend you do some reading first though)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's your aim with all of this?&amp;nbsp; (what problem are you specifically trying to solve?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 10:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368439#M34178</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-31T10:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: cancel a query task in javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368440#M34179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Encounter the same issue. If the query takes too long, we really want to cancel it. How to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 13:37:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-a-query-task-in-javascript/m-p/368440#M34179</guid>
      <dc:creator>PeterLi1</dc:creator>
      <dc:date>2017-10-06T13:37:09Z</dc:date>
    </item>
  </channel>
</rss>

