Section 2.6. Step 1: Get the customer s phone number


2.6. Step 1: Get the customer's phone number

It looks like the first thing we need to do with the Break Neck app is make sure we can get the customer's phone number. That's going to take some HTML, a bit of JavaScript, and a lot of help from the web browser.

 First, we need to make sure the Break Neck HTML form lets the customer enter in their phone number.Next, we need to setup the phone number field so that when it's changed, a new JavaScript function gets called.     JavaScriptThe JavaScript function we'll write needs to get the phone number out of the Break Neck order form.     Customer's Phone NumberIn Step 2, we'll send the phone number on to the Break Neck web server.     Web Server 

The browser can run a function when events occur in a web page, and give your JavaScript access to user-entered information in the page.




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