extjs - Sencha Touch 2 - How to Abort store load with ajax/json -


how can abort store load while ajax call still executing? have simple store proxy type of 'ajax' , 'json' reader.

the documentation not indicate way abort this. have noticed jsonp allow aborting load in progress. have switch jsonp?

the motivation here have search bar , list object gets populated results. actual search on backend can take 5-10 seconds. if user starts search wants search (in case, example, first search typo), new search needs abort first search ajax call. otherwise, seeing mixed results showing in search results.

as usual, appreciated!

mohammad

the solution have used in past solve exact problem track each request incrementing counter , requests complete check counter , if request has been made higher counter disregard result.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -