开发者

lightweight alternative to jquery-ui autocomplete plugin? [closed]

开发者_如何学C As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

does anyone know of a lightweight alternative to the jquery-ui autocomplete plugin?

I'm not using any other jquery-ui components in the project (base lib is jquery 1.5.2). So dont feel I can justify adding 20k (minified) just for simple autocomplete on a single search field.

possible options so far are:

https://github.com/agarzola/jQueryAutocompletePlugin

http://code.google.com/p/jquery-autocomplete/

I dont want to roll my own plugin for such standard functionality .. surely there has to be a great solution out there already?


Sorry but I believe that your research of alternatives will not pay off.

For the other alternatives that you suggested the minified weight is 14.52 kb (agarzola) and 10KB (jquery-autocomplete), so 20KB from the most tested and complete solution doesn't seems like too much to me.

I think you should pay more attention to other important aspects of each plugin instead of the size when the difference is so tiny. Even more in the case of autocomplete functionality, which will consume bandwidth on each automatic search, so I guess I would not use autocomplete if my first concern were the bandwidth.


http://docs.jquery.com/Plugins/autocomplete#Example ;)


I've had reasonable luck with 'UFD' ( http://code.google.com/p/ufd/ ), the Unobtrusive Fast-filter Dropdown. It's not perfect, but it might meet your needs.


yeah, Jquery UI is quiet chunky and is only worth using if you are going to use a bunch of plugins (draggable, resizable, etc. )

I've used : http://codeassembly.com/Unobtrusive-jQuery-autocomplete-plugin-with-json-key-value-support/ for my simple projects couple of times and I reckon its amazing.

you can also check this tutorial out http://return-true.com/2009/08/how-to-jquery-autocomplete/ but I think the first option is sufficient


Have you tried Ninja UI?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜