开发者

Is there a way to call abort() on a jQuery Autocomplete AJAX call?

开发者 https://www.devze.com 2023-03-01 16:03 出处:网络
I\'m trying to build a \"cancel\" link to a jQuery autocomplete field for a large database call. In case it takes too long, it\'d be nice if there were a way to cancel the AJAX call that the autocompl

I'm trying to build a "cancel" link to a jQuery autocomplete field for a large database call. In case it takes too long, it'd be nice if there were a way to cancel the AJAX call that the autocomplete() function makes.

I know the .abort() function exists for the .ajax() call, but is there some an开发者_运维知识库alogous call for a function like autocomplete() that encapsulates an AJAX call? Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消