Skip to Main Content
Head Rush Ajax
book

Head Rush Ajax

by Brett McLaughlin
March 2006
Beginner to intermediate content levelBeginner to intermediate
448 pages
13h 33m
English
O'Reilly Media, Inc.
Content preview from Head Rush Ajax
110
Chapter 2
Man, Break Neck pizza rocks. There’s
nothing like a breakfast of cold pizza, a
whipped latte from Starbuzz, and the
Webville Times to read.
<script>
var request...
function foo()
{
...
}
</script>
JavaScript
<script>
var request...
function foo()
{
...
}
</script>
Customer’s Phone Number
Customer’s Address
Customer’s Order
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.
<script>
var request...
function foo()
{
...
}
</script>
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.
We’re getting close to
being done with the
Break Neck app!
revisiting the document object model
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Head First Ajax

Head First Ajax

Rebecca M. Riordan

Publisher Resources

ISBN: 0596102259Errata PageSupplemental Content