Method Definition
Method Signature |
|
Description | Takes a zip and does a city and state lookup with the United States Postal Service. |
Result | A CityStateZip object. |
Discussion
Make the remote call
Check to make sure the result is not null. If it is, a system error occurred.
Check CityStateZip .validZip flag. If false, the zip was invalid. Also, if false, examine the CityStateZip .error property. If it contains anything, a system error occurred.
If zip was valid, city and state will be populated and may be used.
Examples
As with all Checkout API examples, remember to install the relay script on your local web server before attempting to run these examples. Browsers will not allow cross site scripting.
For more information, please see the discussion on XHR issues.
The following file is also an to this page.
The following file is also an to this page.
The following file is also an to this page.