You basically need an ajax call made each time the value of the textbox changes.
Totally untested, but something along the lines of:
$("#inputName").change(function () {
// maybe check the value is more than n chars or whatever
$.ajax({
url: <%= Url.Action("Lookup", "Users") %> + '/' + this.val(), // path to ajax request
dataType: "html", // probably
success: updateContainerWithResults
});
});
function updateContainerWithResults(data) {
$("#resultsContainerElement").html(data);
}
Sam Wessel
2009-08-11 16:32:37