The clever part of the JavaScript script in an application like Google Suggest is that it caches a table of previous suggestions received for a certain keyword. Therefore, if you type a keyword and then erase back a few characters, the old suggestions received from the request will have been cached and hence there will be no need to fetch them again.
Re: Suggest and Autocomplete using AJAX
The clever part of the JavaScript script in an application like Google Suggest is that it caches a table of previous suggestions received for a certain keyword. Therefore, if you type a keyword and then erase back a few characters, the old suggestions received from the request will have been cached and hence there will be no need to fetch them again.