Welcome Guest, Not a member yet? Register   Sign In
how to use jquery autocomplete in codeigniter
#2

[eluser]mddd[/eluser]
Just some observations..

Code:
$this->load->model('dbsearch');
$data = $this->autocomplete->getdata(); //Search DB
You are loading model 'dbsearch' and then calling a method on 'autocomplete' ? Seems like that's not going to work.

Code:
$this->load->view('home',$data);
Why are you loading the home view here?? The output is going to be sent via Ajax to your script. It won't have any idea what to do with an entire web page! It just needs a list of autocomplete terms!

I would suggest checking what you actually get back from the Ajax call. It will probably have php errors and useless html in it.. Not something the autocomplete script knows what to do with.


Messages In This Thread
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 02:00 AM
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 02:15 AM
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 02:33 AM
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 02:36 AM
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 02:44 AM
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 02:49 AM
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 05:05 AM
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 05:07 AM
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 05:19 AM
how to use jquery autocomplete in codeigniter - by El Forum - 08-20-2010, 11:14 PM
how to use jquery autocomplete in codeigniter - by El Forum - 08-24-2010, 11:58 PM
how to use jquery autocomplete in codeigniter - by El Forum - 08-25-2010, 02:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB