Image may be NSFW.
Clik here to view.Here is another solution for JQuery autocomplete from Devbridge.
It's a very nice and efficient one.
It is built with focus on performance. Results for every query are cached and pulled from local cache for the same repeating query. If there are no results for particular query it stops sending requests to the server for other queries with the same root.
var a = $('#query').autocomplete({ serviceUrl:'service/autocomplete.ashx', minChars:2, delimiter: /(,|;)\s*/, maxHeight:400, width:300, zIndex: 9999, deferRequestBy: 0, //miliseconds params: { country:'Yes' }, noCache: false, // callback function: onSelect: function(value, data){
alert('You selected: ' + value + ', ' + data); }, // local autosugest options: lookup: ['January', 'February', 'March', 'April', 'May'] });
My prefer solution still is this one, but the Devbridge development has to be seen.
Read more / Lire la suite