Datasheet
As you watch, the SaneBull monitor updates the Market Watch information at left in the Web page,
giving you market quotes by modifying the Web page.
Ajax applications sometimes work by updating HTML controls in the Web page, not just the
display in the page itself. You can see an example at
www.jsquery.com/java-jsquery/
examples/sql/zipform.jsp
, which is a reverse ZIP code finder. You enter a ZIP code, and
the application tells you what city and state the ZIP code is for. You can see the reverse ZIP code
finder at work in Figure 1.34.
FIGURE 1.34
A reverse ZIP code finder
When you click the Find Location button, the city, county, and state matching the ZIP code you’ve
entered appears in the text fields in the Web page, as shown in Figure 1.35, through the magic of
Ajax and dynamic HTML.
27
Essential Ajax
1
06_102633 ch01.qxp 2/23/07 9:44 PM Page 27