Skip to Content
Head Rush Ajax
book

Head Rush Ajax

by Brett McLaughlin
March 2006
Beginner to intermediate
448 pages
13h 33m
English
O'Reilly Media, Inc.
Content preview from Head Rush Ajax
you’re on your way 4
3
next generation applications
Welcome to the new millenium!
Anybody can program using the same old request/response
model. But if you want faster apps that feel like you’re
working on a desktop, you need something new—you need
Ajax, a completely different approach to web programming:
For the web server, nothing has
changed; it still responds to each
request, just as it did before.
JavaScript
Request
This JavaScript code makes a
request to the server.
Web Server
Response
The JavaScript
dynamically
updates the web
page, without
redrawing
everything. Sweet!
Web Server
No more waiting around...
...when you’re using Ajax apps
The web page sends its requests
using a JavaScript function, which
handles talking to the server.
The server’s response has only the
data the page needs... without any
markup or presentation.
<script>
var request...
function foo()
{
...
}
</script>
<script>
var request...
function foo()
{
...
}
</script>
Update
JavaScript
Most of the page doesn’t change...
only the parts of the page that
need to change are updated.
4
Chapter 1
If you haven’t guessed by now, we’re talking
about how you can use Ajax to build killer
web apps. So far, you’ve seen how Ajax
applications can talk to a web server without
the browser reloading and redrawing the
entire page all the time. But ther
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

What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally

Publisher Resources

ISBN: 0596102259Errata PageSupplemental Content