Welcome Guest, Not a member yet? Register   Sign In
can't get autocomplete value
#5

[eluser]titolancreo[/eluser]
I think my error is sending because I use the same ajax function to send other things, but without autocomplete.

If I change it to $(this).val, there is an error, because jquery cannot call method 'toLowerCase' of undefined.

I changed
<code>$buscar = $this->input->post('term');</code>
to
<code> $buscar = $this->input->get('term');</code>
and now it works, but why? I have enable_query_strings= FALSE

Maybe should I change my controller?
Code:
$list = $this->DaoAutocomplete->autocomplete($term); //it returns 10 names
                $i=0;
                foreach($lista as $row)
                {
                    $data[]= $row; //each row contains only one name ($row->name)
                }
                echo json_encode($data);


Messages In This Thread
can't get autocomplete value - by El Forum - 03-30-2013, 01:19 PM
can't get autocomplete value - by El Forum - 03-31-2013, 01:49 AM
can't get autocomplete value - by El Forum - 03-31-2013, 02:10 AM
can't get autocomplete value - by El Forum - 03-31-2013, 04:32 AM
can't get autocomplete value - by El Forum - 03-31-2013, 05:58 AM
can't get autocomplete value - by El Forum - 03-31-2013, 06:10 AM
can't get autocomplete value - by El Forum - 04-03-2013, 03:35 AM
can't get autocomplete value - by El Forum - 04-03-2013, 04:55 AM
can't get autocomplete value - by El Forum - 04-03-2013, 11:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB