Automatic Search Box

Associate
Joined
25 Feb 2007
Posts
905
Location
Midlands
Hi,

I am writing a web app and have an input field where a user can enter a search term. This term is used to query an MSSQL database. Possible results are then displayed below the search box.

I want these results to start displaying as soon as the user starts typing the search term, rather than having to click a dedicated search button.

How would I go about implementing this? What are the general performance issues I should look out for?

Can anyone point me in the right direction? The app is being written in ASP.NET.

Thanks,
 
AJAX!!!
You can use ASP.NET's AJAX functionality or I use the prototype.js or JQuery Javascript framework. You press a key, it calls a JS function which calls a page using AJAX which returns your results which you drop in a waiting container like a DIV.
 
Back
Top Bottom