index | next

Direct Web Remoting

Recall the use of the Ajax.Request prototype in:
      function zipChanged(zip) {
          if(zip.length != 5) {
              clearCityAndStateFields();
          }
          else {
              new Ajax.Request(
               "zipChanged.ajax",   // URL
                 {     method: "get", // HTTP method
                   parameters: "zip=" + zip, // Request params
                   onComplete: processZipCodeSelection, // callback
                 });
          }
      }

index | next