<?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 Cancel esri.request or stop callback from happening in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-esri-request-or-stop-callback-from/m-p/314638#M28924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my project I have a dropdown list and when the user changes the value of this dropdown list an esri.request shoots out to get data. The problem is that sometimes a user will change the value of the dropdown box again before the callback from the last change comes back. Is there a way to stop the callback from happening if the user fires another request?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to do something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var handle = esri.request({...});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//sometime later&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;handle.load = null;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2012 18:59:25 GMT</pubDate>
    <dc:creator>MattMoyles</dc:creator>
    <dc:date>2012-03-01T18:59:25Z</dc:date>
    <item>
      <title>Cancel esri.request or stop callback from happening</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-esri-request-or-stop-callback-from/m-p/314638#M28924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my project I have a dropdown list and when the user changes the value of this dropdown list an esri.request shoots out to get data. The problem is that sometimes a user will change the value of the dropdown box again before the callback from the last change comes back. Is there a way to stop the callback from happening if the user fires another request?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to do something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var handle = esri.request({...});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//sometime later&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;handle.load = null;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 18:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-esri-request-or-stop-callback-from/m-p/314638#M28924</guid>
      <dc:creator>MattMoyles</dc:creator>
      <dc:date>2012-03-01T18:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel esri.request or stop callback from happening</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-esri-request-or-stop-callback-from/m-p/314639#M28925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;esri.request return a dojo.Deferred&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if you see you have a &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://dojotoolkit.org/api/1.3/dojo/Deferred/cancel" rel="nofollow" target="_blank"&gt;http://dojotoolkit.org/api/1.3/dojo/Deferred/cancel&lt;/A&gt;&lt;SPAN&gt; so in the chain you can cancel it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;see &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://livedocs.dojotoolkit.org/dojo/Deferred" rel="nofollow" target="_blank"&gt;http://livedocs.dojotoolkit.org/dojo/Deferred&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 19:17:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cancel-esri-request-or-stop-callback-from/m-p/314639#M28925</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-03-01T19:17:53Z</dc:date>
    </item>
  </channel>
</rss>

