Skip to Main Content
Head Rush Ajax
book

Head Rush Ajax

by Brett McLaughlin
March 2006
Beginner to intermediate content levelBeginner to intermediate
448 pages
13h 33m
English
O'Reilly Media, Inc.
Content preview from Head Rush Ajax
68
Chapter 2
Solving the pizza delivery problem
Fortunately, web developers have been solving these sorts of problems for years.
Instead of letting users enter their own address (and type something incorrectly),
let’s look up the customer’s address in the Break Neck customer database. Then,
Alex will always get the right delivery address. Here’s what we can do:
Customer’s phone number
The new
form has the
customer’s phone
and address
already lled in.
The customer enters their phone number
Customer’s
phone number
A customer enters his phone number, and the phone
number gets sent to Break Neck’s web server.
The server lls in the customer’s details
The server sends back a new form, with the customer’s name,
phone number, and address already entered into the HTML.
New HTML with
customer info lled in
Break Neck’s server
1
2
The customer can make sure his
address is right, but shouldn’t have
to type it in manually, and run the
risk of making mistakes.
old skool web apps
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Head First Ajax

Head First Ajax

Rebecca M. Riordan

Publisher Resources

ISBN: 0596102259Errata PageSupplemental Content