I'm trying to run the autosuggest textbox example (
http://www.webreference.com/programm.../example2.html) in IE6 SP1 but getting "Object doesn't support this property or method" on line 7 of the following function ("aSuggestions.push(this.states[i]);"). Can anyone give a suggestion?
StateSuggestions.prototype.requestSuggestions = function (oAutoSuggestControl) {
var aSuggestions = [];
var sTextboxValue = oAutoSuggestControl.textbox.value;
if (sTextboxValue.length > 0){
for (var i=0; i < this.states.length; i++) {
if (this.states[i].indexOf(sTextboxValue) == 0) {
aSuggestions.push(this.states[i]);
}
}
oAutoSuggestControl.autosuggest(aSuggestions);
}
}