Retrieving results without submit
just like in google, whe开发者_开发百科n you search for something. the websites are displayed without clicking submit button.
how do you achieve that?
- Learn javascript
- Learn ajax
- Learn how to use JQuery + some google to find out how to integrete Jquery in your programming language
How i learned it:
Resources on javascript :
- Site : W3schools
- Book : Head first javascript
Resources on Ajax :
- Book : Head first ajax
Resources on Jquery :
Google google google ! and tons of reading on blogs. But the sites you will cross the most :
- http://jquery.com/
- For some magic : http://jqueryui.com/
also keep in mind that using javascript can be database-intensive so cache your results.
The answer on your question: http://flux88.com/blog/jquery-auto-complete-text-box-with-asp-net-mvc/
You can access the value of an input at any time using javascript. I suggest you learn jquery if you want to make ajax applications.
// show the value of the html element with id 'nameInput'
alert($('nameInput').value);
精彩评论