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
you’re on your way 4
73
ajax requests
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 ow 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.
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.
JavaScript
<script>
var request...
function foo()
{
...
}
</script>
Customer’s Phone Number
Customer’s Address
Customer’s Order
<script>
var request...
function foo()
{
...
}
</script>
We need a PHP script
to look up a customer’s
address based on his
phone number.
We need to make sure the
“Order Pizza” button submits
the form to Break Neck’s server.
We need a PHP script to
place the order and generate
a delivery request.
A few ideas:
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 ...
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