you’re on your way 4
69
ajax requests
Finally, an order form
with the right address!
The customer enters their order
With the customer’s details lled in, he can enter his pizza
order into the form, and click “Complete Order”.
The server sends a delivery request
The customer’s name, address, and phone number are
sent to Alex, the delivery guy, along with the customer’s
pizza order, ready for delivery.
Here’s the customer’s
pizza order.
Customer’s
pizza order
Order
3
4
Umm... hello? I thought this was
an
Ajax
book... why aren’t we using
asynchronous requests here? And the
customer has to wait around while the
server looks up his address? That’s not
very Break Neck!
No kidding!
It looks like Ajax is just
the thing to help out
Break Neck. Let’s look
up that address without
making the customer
wait around for the
server... and solve
Alex’s delivery woes, all
at the same time.