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