I’m using the jQuery Autocomplete control to autocomplete from the server via an AJAX call.
I implemented the search event to show a “Loading…” animation while results are being fetched from the server.
I want to disable that animation and show a message if fetching the autocomplete results from the server failed (timeout or whatever)
Whats the best way to do that?
I’m using the jQuery Autocomplete control to autocomplete from the server via an AJAX
Share
Have a looksie at the jQuery.ajaxError method, which allows you to setup a default error callback for all ajax calls; http://api.jquery.com/ajaxError/