function StatesSuggestionProvider() {
pAjax.apply(this);
this.controller = null;
this.typeAhead = true;
}
var _p = StatesSuggestionProvider.prototype = new pAjax;
_p.requestSuggestions = function (oAutoSuggestController, bTypeAhead) {
this.controller = oAutoSuggestController;
this.typeAhead = bTypeAhead;
var req = this.prepare("suggestStates", pAjaxRequest.POST);
req.setParam("text", this.controller.textbox.value);
req.async();
}
_p.onLoad = function () { this.controller.autoSuggest(this.getResponse(), this.typeAhead); }
|