Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Buy Now $31.99
Standard view
Full view
of .
Look up keyword or section
Like this
6Activity

Table Of Contents

The Web, Reloaded
Welcome to the new millenium!
“Reloads? We don’t need no stinking reloads.”
The highlight reel: Chapter 1
Step 1: Creating a request object
What the server used to do
What the server should do now
Adding an event handler
How we see web apps
Introducing the web browser
What should the browser do with the server’s response?
Sending instructions to the browser
Getting the server’s response
Checking for the right ready state
Event handlers connect HTML to JavaScript
Supporting multiple browsers
JavaScript doesn’t have to be in a function
Request URLs deliver data to the server
Send the request to the server
HTTP Ready States
Checking the ready state
What is the browser doing?
Get the server’s response from the request object
Test driving the Break Neck app
When browsers cache request URLs
What does asynchronous really mean?
Building an Ajax-powered coffee maker
Getting the value of a radio group
Writing the callback function
Introducing the JavaScript substring() function
The final test drive (right?)
We need two request objects!
Creating two request objects
Welcome to the world of asynchrony!
The node knows... pretty much everything
The Great Chapter 4 Coding Challenge
Repeat business rocks
Submitting a form with Ajax
2. Send the order to the server
When things go wrong
The DOM is connected to what a customer sees
Test driving Break Neck
The server talks back
Break Neck error handling
GET requests versus POST requests
Web servers unencode POST data
Send more data with a POST request
Trying out POST requests
The mysterious POST data
Setting the Content Type
servers don’t get to say much
XML: just what the doctor ordered
The problem with Boards ‘R’ Us
Filling that XML prescription
Using responseXML in your code
WHICH DATA Format?
Index
P. 1
Head Rush Ajax

Head Rush Ajax

Ratings:

4.08

(31)
|Views: 579|Likes:

Sick of creating web sites that reload every time a user moves the mouse? Tired of servers that wait around to respond to users' requests for movie tickets? It sounds like you need a little (or maybe a lot of) Ajax in your life. Asynchronous programming lets you turn your own web sites into smooth, slick, responsive applications that make your users feel like they're back on the information superhighway, not stuck on a dial-up backroad.

But who wants to take on next-generation web programming with the last generation's instruction book? You need a learning experience that's as compelling and cutting-edge as the sites you want to design. That's where we come in. With Head Rush Ajax, in no time you'll be writing JavaScript code that fires off asynchronous requests to web servers...and having fun doing it. By the time you've taken your dynamic HTML, XML, JSON,and DOM skills up a few notches, you'll have solved tons of puzzles, figured out how well snowboards sell in Vail, and even watched a boxing match. Sound interesting? Then what are you waiting for? Pick up Head Rush Ajax and learn Ajax and asynchronous programming the right way--the way that sticks.

If you've ever read a Head First book, you know what to expect: a visually rich format designed for the way your brain works. Head Rush ramps up the intensity with an even faster look and feel. Have your first working app before you finish Chapter 1, meet up with the nefarious PROJECT: CHAOS stealth team, and even settle the question of the Top 5 Blues CDs of all time. Leave boring, clunky web sites behind with 8-tracks and hot pants--and get going with next-generation web programming.

"If you thought Ajax was rocket science, this book is for you. Head Rush Ajax puts dynamic, compelling experiences within reach for every web developer."-- Jesse James Garrett, Adaptive Path

"A 'technology-meets-reality' book for web pioneers on the cutting edge."-- Valentin Crettaz, CTO, Condris Technologies

Sick of creating web sites that reload every time a user moves the mouse? Tired of servers that wait around to respond to users' requests for movie tickets? It sounds like you need a little (or maybe a lot of) Ajax in your life. Asynchronous programming lets you turn your own web sites into smooth, slick, responsive applications that make your users feel like they're back on the information superhighway, not stuck on a dial-up backroad.

But who wants to take on next-generation web programming with the last generation's instruction book? You need a learning experience that's as compelling and cutting-edge as the sites you want to design. That's where we come in. With Head Rush Ajax, in no time you'll be writing JavaScript code that fires off asynchronous requests to web servers...and having fun doing it. By the time you've taken your dynamic HTML, XML, JSON,and DOM skills up a few notches, you'll have solved tons of puzzles, figured out how well snowboards sell in Vail, and even watched a boxing match. Sound interesting? Then what are you waiting for? Pick up Head Rush Ajax and learn Ajax and asynchronous programming the right way--the way that sticks.

If you've ever read a Head First book, you know what to expect: a visually rich format designed for the way your brain works. Head Rush ramps up the intensity with an even faster look and feel. Have your first working app before you finish Chapter 1, meet up with the nefarious PROJECT: CHAOS stealth team, and even settle the question of the Top 5 Blues CDs of all time. Leave boring, clunky web sites behind with 8-tracks and hot pants--and get going with next-generation web programming.

"If you thought Ajax was rocket science, this book is for you. Head Rush Ajax puts dynamic, compelling experiences within reach for every web developer."-- Jesse James Garrett, Adaptive Path

"A 'technology-meets-reality' book for web pioneers on the cutting edge."-- Valentin Crettaz, CTO, Condris Technologies

More info:

Publish date: Mar 28, 2006
Added to Scribd: May 16, 2009
Copyright:Traditional Copyright: All rights reservedISBN:9780596152833
List Price: $31.99 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
This book can be read on up to 6 mobile devices.
See more
See less

01/20/2015

448

9780596152833

$31.99

USD

You're Reading a Free Preview
Pages 18 to 95 are not shown in this preview.
You're Reading a Free Preview
Pages 121 to 269 are not shown in this preview.
You're Reading a Free Preview
Pages 292 to 448 are not shown in this preview.

Activity (6)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
eja_neeh liked this
noualhouda liked this
lkosgey liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->