Section 2.34. Step 4: Update the order form


2.34. Step 4: Update the order form

Once you've got the customer's address, you need to update the pizza order form. You'll need the browser again, as well as some help from the Document Object Model.

We're getting close to being done with the Break Neck app!

Your JavaScript callback function can use the browser and the Document Object Model to update the order form.

You've already gotten the customer's address in Steps 2 and 3...

...and can use the DOM to update the web form, similar to how you got the customer's phone number earlier.

If you make a change to a web page using the Document Object Model, the browser updates the web page immediately.




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