File: appz/autosuggest/statessuggestionprovider.js

Recommend this page to a friend!
  Classes of Guilherme Blanco  >  pAjax  >  appz/autosuggest/statessuggestionprovider.js  >  Download  
File: appz/autosuggest/statessuggestionprovider.js
Role: Auxiliary data
Content type: text/plain
Description: USA States Suggestion Provider Script
Class: pAjax
Do RPC calls from the browser without page reloads
Author: By
Last change:
Date: 15 years ago
Size: 589 bytes


Class file image Download
function StatesSuggestionProvider() {

    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);

_p.onLoad = function () { this.controller.autoSuggest(this.getResponse(), this.typeAhead); }

For more information send a message to info at phpclasses dot org.