Section 5.17. Trying out POST requests


5.17. Trying out POST requests

Make sure you've taken care of everything in the Just Do It exercise on page 299, and then load pizza.html in your web browser. Go ahead and enter a phone number, and while the server is filling in your address, enter in a pizza order. Click the "Order Pizza" button, and see what happens.

Uh oh... the placeOrder.php script is reporting an error. Somehow the customer's order didn't get through.

Frequently Asked Questions?

Q:

I tried pizza.html on Safari, and it worked just fine. Is there something wrong (or right) with my code?

A:

No. Safari tends to do a few things that make a POST request work without a few of the extra steps you need to take for most other browsers. The POST version of Break Neck fails on Internet Explorer, Opera, and Firefox, so we definitely need to figure out what's going on, and fix the Break Neck app.





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