|
function InitAutoComplete(event, input) {
var myAutoComplete = new AutoComplete(input);
myAutoComplete.Source = "search.php";
myAutoComplete.QueryString = "q";
myAutoComplete.Delay = 300;
myAutoComplete.MinLength = 1; //start search after 1 character
myAutoComplete.SearchCaption = "Search...";
//look and feel (if you don't set this options, it will use the default css classes)
myAutoComplete.CssClassBox = "searchBox";
myAutoComplete.CssClassLabel = "searchLabel";
myAutoComplete.CssClassProgress = "searchProgress";
myAutoComplete.CssClassSelected = "searchSelected";
//fire
myAutoComplete.Execute(event);
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.