[eluser]salvomil[/eluser]
Yes, and it is what I do
function search_names($search, $field)
{
if (strlen($search)>2)
{
$ajax = ajax();
$out = array();
$c = new Comune();
$where = "ist_descrizione like '$search%'";
$c->where($where)->get();
.......etc
But you can image that every time I press a key there is always an ajax call and a little waste of time....
Another good thing woul be to let a timeout for a keyup event (every 0.3 ms for example) to avoid to have many ajax calls.
However thank you for your job!