post requests
Make sure you’ve checked your answers to the Just Do It exercise on the last
page with ours, and made these changes to your pizza.js JavaScript le.
Then, load up pizza.html, and let’s see how things look.
Test driving Break Neck
Alright, let’s let the customers know
we’ve made some improvements!
Not so fast, Alex...
The rst part of Break Neck works the
same... customers enter a phone number,
and the server sends back their address.
Then the customer enters in their pizza
order, and clicks “Order Pizza”.
Now, the Break Neck order form is
submitted asynchronously, instead of
using a form submit.
Without ever having to see a page reload,
customers get an order conrmation
page with an estimated delivery time.
289