Section 5.9. Test driving Break Neck


5.9. Test driving Break Neck

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 file. Then, load up pizza.html, and let's see how things look.

The first 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".

Without ever having to see a page reload, customers get an order confirmation page with an estimated delivery time.

Now, the Break Neck order form is submitted asynchronously, instead of using a form submit.

Alright, let's let the customers know we've made some improvements!

Not so fast, Alex...




Head Rush Ajax
Head Rush Ajax (Head First)
ISBN: 0596102259
EAN: 2147483647
Year: 2004
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net