Smart AutoComplete - Flexible Autocomplete Plugin for jQuery
Smart AutoComplete is smart and flexible jQuery based autocomplete plugin. Using Smart Autocomplete on your projects is easy. Only dependency it has is for jQuery core library. To enable autocompletion on the text field, you must select it using jQuery and call the smartAutoComplete method on it. Source can be either an array or a string specifying a URL. If you specify a URL, filter function will send an AJAX request to that URL, expecting a JSON array as a respons.
Though Smart Autocomplete comes with sensible defaults, you can easily customize the default behavior by setting couple of one-line options. Apart from the required source field, it has 3 other options defined. The maxResults option sets the maximum number of results to be shown; delay option sets number of milliseconds plugin should wait (after user enters a key) before calling the filter function.
Smart Autocomplete plugin gives you the flexibility to override the built-in filter function with a custom function. Custom filter function should return an array of results or a deferred promise, which returns an array on resolve. If you call jQuery Ajax methods, those will return an object containing a promise by default.
Requirements: jQuery framework
Demo: http://laktek.com/2011/03/03/introducing-jquery-smart-autocomplete
License: MIT License
2 Comments
g
04.07.2011
hey, hey… you haven’t mentioned to us about this plugin is only support jquery 1.5.x above…?
I wonder how the response of JSON format expected if we change the ‘source’ options from that plugin?
Mufti Ali
04.07.2011
Hey , hey my apologize, yes, this plugin require jQuery core version 1.5 or above.
There are no trackbacks to display at this time.