AnsweredAssumed Answered

Cancel esri.request or stop callback from happening

Question asked by mmoyles on Mar 1, 2012
Latest reply on Mar 1, 2012 by
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?

Is it possible to do something like this

var handle = esri.request({...});

//sometime later
handle.load = null;