![]() |
Search with auto suggest in header - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Search with auto suggest in header (/showthread.php?tid=40847) |
Search with auto suggest in header - El Forum - 04-20-2011 [eluser]Unknown[/eluser] Hi everybody, I'm building a website now, which has a search field in the header. When the user will press a key in the search input field, the possible results should be displayed automatically in a dropdown menu under the search field. These results will contain contain anchors. This should be done by using jQuery and AJAX. I found a autosuggest-jquery-plugin here website. I want to implement it now but I still have some questions. How should I use the MVC model to make this work? Should I write jquery and ajax in the header, which acces a controller to get the result data? Or is it allowed to do the result query in the header itself? That will be more easy. I hope somebody can give me his opinion about this issue. Thanks in advance, Twan |