AJAX Autosuggest - Improving Performance
Search a word in the dictionary. The results will be retrived from the
database without reloading the page.
The AJAX requests will be sent to the server only if four (or more) characters will be entered in the combobox.
See also the AJAX tutorial for more information about the AJAX support of the combobox.
| | |
ASP.NET
<obout:Combobox id="cbo1" AjaxMethod="SuggestWords" OnClientKeyPress="openCombobox" runat="server"> </obout:Combobox>
|
| | |
Javascript
function openCombobox() {
var oTextbox = document.getElementById("ob_cbo1Textbox");
if(oTextbox.value.length >= 4) {
cbo1.o_l5 = "OnSuggestOptions";
cbo1.open();
} else {
cbo1.o_l5 = "";
}
}
| | |
| "Thanks so much, you guys have the best support I have ever seen." |
Mike Blandford |
|
| | |
|