February 2007
Intermediate to advanced
65 pages
1h 10m
English
One of the prototypical Ajax use cases is form completion, where a user enters information in a field that causes other fields on the page to change. For example, we can use Ajax to react to the value entered into a Zip Code field, as shown in Figure 2.

When the user leaves the Zip Code textfield, we send an Ajax request to the server, passing the current value of the Zip Code field as a request parameter. We associate the Zip Code field with the event handler like this:
The zipChanged function uses Prototype to send the Ajax ...
Read now
Unlock full access