On Wednesday, August 17, 2011 12:10:44 PM UTC-4, Daniel Aguayo wrote:
>
> Hi List, 
>
> I remember that book used to say that for autocomplete was better 
> going for the jquery plugin for same purposes (altought i cannot find 
> that in the book, now).
>
I don't recall that in the book. There is a simple autocomplete example in 
the Ajax chapter (http://web2py.com/book/default/chapter/10#Auto-completion), 
which mentions there is a jQuery plugin with additional features, and also 
mentions that web2py includes its own built-in autocomplete widget (
http://web2py.com/book/default/chapter/07#Autocomplete-Widget).
 

>
> If I would have a large amount of fields to search (say, thousands or, 
> i hope not, millions) is the web2py autocomplete best solution for 
> this at this moment or should I go with jquery plugins (supposing the 
> same sql query using DAL)?

 
In terms of query performance, I don't suppose there would be much 
difference between the web2py widget and the jQuery UI widget, as they would 
both have to use the DAL to make the query. The jQuery widget probably 
offers my client-side options, though (I have also had problems with the 
web2py widget working in IE, which I hope to get to fixing soon).
 

>  

For Jquery plugins, I don't know if these are the same or if you could 
> recommend one over another: 
>
> * http://jqueryui.com/demos/autocomplete/ 
> * http://docs.jquery.com/Plugins/autocomplete
>
I think the jQuery UI autocomplete widget is the current one to use (the 
second one you list was deprecated -- see 
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/).
 
Anthony

Reply via email to