Section 2.5. Be the Architect


2.5. Be the Architect

You've seen what the Break Neck order form should do, and you've also got an idea of what has to happen behind the scenes to turn Break Neck into a customer-friendly web app. Now it's your turn to take charge.

Below is the basic flow diagram for the Break Neck app. Your job is to add notes to this diagram, indicating what steps you need to take to turn this diagram into reality. Write what functions you might need to write, and relate them to the drawing. We've added a few notes of our own to help you get started, and given you some sample notes at the bottom to give you some ideas.

     Customer's Phone NumberWe need a PHP   script to look up a customer's address based on his phone number.     JavaScript     Customer's Address     Customer's OrderWe need to make sure the "Order Pizza" button submits the form to Break Neck's server. 

2.5.1. A few ideas:

We need a PHP script to place the order and generate a delivery request.

When the customer enters their phone number, a JavaScript function should run.

The browser runs a callback function we'll write.

We need a JavaScript function to get the customer's phone number and send it to the Break Neck server.

Our callback function should update the order form with the customer's address.




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