Search with auto suggest in header |
[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 |
Welcome Guest, Not a member yet? Register Sign In |