Product Details
Sams Teach Yourself AJAX in 10 Minutes

Sams Teach Yourself AJAX in 10 Minutes
By Phil Ballard

List Price: $19.99
Price: $15.59 & eligible for FREE Super Saver Shipping on orders over $25. Details

Availability: Usually ships in 24 hours
Ships from and sold by Amazon.com

52 new or used available from $2.35

Average customer review:

Product Description

Sams Teach Yourself Ajax in 10 Minutes is a concise introduction to the basics of building Ajax applications and the architecture and operation of these applications. You will learn the techniques employed in using Ajax, introducing Ajax and explaining how it may be used to solve realistic user interface problems. You will be able to immediately begin building web applications, and will have platform from which to explore more advanced aspects of Ajax.


Product Details

  • Amazon Sales Rank: #242090 in Books
  • Published on: 2006-05-08
  • Original language: English
  • Number of items: 1
  • Binding: Paperback
  • 240 pages

Editorial Reviews

About the Author
Phil Ballard is a professional web consultant specializing in website and intranet design, search engine optimization, server-side scripting, client-side design and programming and hosting. Phil has written a number of online tutorials, including the most popular of late, on AJAX.


Customer Reviews

Good cheap introduction4
Who is the author?

Phil Ballard is behind themousewhisperer and crackajax.

Description

The small book of some 220 pages has four parts.

The first part resumes what you need to know before doing any AJAX: HTML, HTTP, JavaScript, PHP, XML. Explains javascript-access to XML DOM.

The second part introduces AJAX. AJAX is motivated by a better user experience that is more like a desktop application and by saving bandwidth. Phil goes on to introduce the central part of AJAX, the XMLHttpRequest Object, with simple examples returning html-snippets as text.

The third part show how to use the XMLHttpRequest object with text and with XML, asynchronously, with SOAP, and lists some gotchas. The SOAP example constructs the SOAP requests directly in javascript and takes the SOAP response apart in the same way.

The fourth part briefly recommends three toolkits for AJAX programming:
prototype.js, by Sam Stephenson, which provides useful DHTML functions and ajax-encapsulation.
Rico, which goes on top of prototype.js, which lets you register page elements for manipulation from an AJAX-response. Also gives drag & drop, which is not AJAX, but often will be followed by an AJAX communication of the user action to the server.
XOAD, PHP server side AJAX support, by Stanimir Angeloff. It makes PHP classes callable from Javascript, and can change page elements from PHP.

Opinion

The book is generally well written, although sometimes I would have preferred to be told more clearly what the problem and the main idea of the proposed solution are, before being shown the details of the solution.
The book really starts from first principles. It may seem a little slow sometimes, but that is good. An example for slowness is that there are several repitions of browser-independent XMLHttpRequest creation.
It is not tied to any framework or library and lets you understand what is behind the libraries by experimenting directly with the XMLHttpRequest object. There is a little use of PHP on the server.
In the explanations, I feel that UML sequence diagrams would have helped, for example on page 79. With AJAX, it is important to understand what methods are called, when they are called, and where they are.

I like that the authour seems in favour of using AJAX for returning html text, and of using the simple REST philosophy, when these simple techniques are sufficient for a particular design. Too often people get tempted into using more complex technologies without being clear about whether they are really necessary.

The SOAP example constructs the SOAP envelope manually and takes the SOAP response apart manually. Of course, SOAP is a lot of work if you do it that way! Realistically, must use a library that encapsulates the SOAP protocol and lets you communicate in terms of objects. SOAP is remote procedure call. It is only advisable to use SOAP if you really need the generality of remote procedure call and if you do, SOAP is a better option than making your own protocol.

For who is the book?

The book is for web programmers that already know HTML, HTTP, JavaScript and want to start using AJAX. The book recaps the important points of these topics as far as they will be used in the book.

The audience for this book is somewhat confusing...3
In a perfect world, you could pick up any new technology in 10 minute chunks. But the world isn't perfect, and some technologies don't even come close to this 10 minute standard. This could be a case in point... Teach Yourself AJAX in 10 Minutes by Phil Ballard.

Contents:
Part 1 - A Refresher on Web Technologies: Anatomy of a Website; Writing Web Pages in HTML; Sending Requests Using HTTP; Client-Side Coding Using JavaScript; Server-Side Programming in PHP; A Brief Introduction to XML
Part 2 - Introducing Ajax: Anatomy of an Ajax Application; The XMLHTTPRequest Object; Talking with the Server; Using the Returned Data; Our First Ajax Application
Part 3 - More Complex Ajax Technologies: Returning Data as Text; AHAH - Asynchronous HTML and HTTP; Returning Data as XML; Web Services and the REST Protocol; Web Services Using SOAP; A JavaScript Library for Ajax; Ajax "Gotchas"
Part 4 - Commercial and Open Source Ajax Resources: the prototype.js Toolkit; Using Rico; Using XOAD
Index

I don't think that this is a bad book... It's just that it tries to cover a whole lot of material in a short format, and as such ends up with a muddled target audience. Ajax is a combination of technologies, so you just can't cover a single subject and be done with it. The first part of the book attempts to be a refresher for HTML, JavaScript, and numerous other subjects that can be large books unto themselves. But if you need this refresher, it's likely that you're not at a point where you could effectively use Ajax anyway. Part 2 is solid information, albeit constrained by the 10 minute format. Parts 3 and 4 build on the Part 2 information, so if you didn't get grounded there, you could be in trouble. I imagine that the target audience (web developers without a significant programming background) would end up confused in the coding sections, and the designers with coding experience would be looking for more in-depth information...

I found the book most helpful if I viewed each chapter on its own merits based on my interest level. For instance, the "gotchas" chapter is good if you're trying to avoid common issues that Ajax applications encounter. But I'm not sure if there's enough "single chapter" material here to make it an attractive recommendation to someone who already is dabbling in Ajax and has other reference material. And I definitely wouldn't recommend it as a first exposure to Ajax for a newbie...

Good general overview of AJAX4
I was looking for some basic information on AJAX, such as the XMLHttpRequest object. I was not aware that simple HTM (or any other text) could be passed back from the web server, now I know and that's very useful to know, since those are more useful to me that XML. This book gave me the general basic info I needed. Now that I've got a working knowledge of AJAX, I can find another book with more detail for more advanced uses of the capability.

I think the book wasted space with it's attempt at an intro to html and intro to javascript. I'm not sure that anyone unfamiliar with these aspects of web development needs to be tackling AJAX, because they're probably not the least bit knowledgeable of server-side technology.

I would have appreciated the server-side scripting to be ASP instead of PHP (with which I'm not familiar), but that's a minor issue since the scrips are small and easy enough to grasp what they're doing.