Section 2.14. Step 2: Request the customer s address


2.14. Step 2: Request the customer's address

Next up is sending the phone number we got in Step 1 to Break Neck's web server, and asking for the customer's address based on that phone number.

We're on to the next part of our Break Neck diagram.

     JavaScript1. You'll need to create a request object in our JavaScript, just like you did back in Chapter 1.2. Next, using the phone number you just got from the web form, you can set up a new request with that phone number as the data in the request.     Customer's Phone Number3. You can use the request object to send the customer's phone number to the Break Neck server.     Web Server4. The Break Neck web server needs a PHP script that can look up a customer's address using his phone number. 

2.14.1. Where's the Web Browser?

Is the browser involved at all in this step? If you think it is, add a note to this page saying what you think the browser does.




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