Bulletproof Ajax

Bulletproof Ajax
by Jeremy Keith

Bulletproof Ajax
List Price: $39.99
Our Price: $23.30
You Save: $16.69 (42%)
Availability: Usually ships in 1-2 business days
Buy Used: from $18.19 (click here)
Category: Book
See more book details and other editions


(Click here)
Buy this book at online book store in your country
Canada | UK | Germany | France

Book Summary Information

Author: Jeremy Keith
Technical Editor: Aaron Gustafson
Edition: Paperback
Audio: English (Unknown); English (Original Language); English (Published)
Published: 2007-02-19
ISBN: 0321472667
Number of pages: 216
Publisher: New Riders
Accessories:

Book Reviews of Bulletproof Ajax

Book Review: Ajax for Designers
Summary: 5 Stars

The trouble with most JavaScript and Ajax related books is they make certain assumptions about the reader, namely that he or she is coming from a server-side programming background. They often say things like: "For those of you who have coded in Python..." or "Perl style regular expressions..." This is good if indeed you are familiar with Python or Perl, etc. But what about the rest of us?

Thankfully, Jeremy Keith has stepped up to fill the void with Bulletproof Ajax. This book does not presuppose a heavy programming background. Instead, it is geared towards the web designer who wants to become more of a front-end developer. The prerequisites are: understanding of semantics, HTML and CSS. If that's you - good news! You already have a working knowledge of the Document Object Model, an essential piece of the Ajax puzzle. Who better to explain it, than co-lead of the DOM Scripting Task Force himself.

This book begins by laying the groundwork for an intelligible conversation. It defines JavaScript syntax such as: functions, methods, arrays and objects. With that vocabulary in place, it jumps into manipulating XHTML documents with JavaScript. It then explains unobtrusive concepts, and gets into the XMLHttpRequest and the world of possibilities that come with it.

This book is unique in that it actually acknowledges the drawbacks of Ajax and, like it's namesake Bulletproof Web Design, helps you plan for contingencies. Rather than referring to accessibility as something that must be added in later, he advocates not removing it in the first place. After all, HTML is already accessible. It's things we do to it with CSS and JavaScript that taint it. On page 102, he urges developers to:

1. Plan for Ajax from the start.
2. Implement Ajax at the end.

He also warns against using JavaScript alone to handle things like form validation and complex calculations. If you rely on this only, you have no fall-back plan. Ideally, JavaScript should be like a waiter going to a from a kitchen, serving things to the end-user. Let me share a few more quotes.

Page 99:

"Far too many Ajax applications are built on the assumption that JavaScript will be available. Instead of treating the language as a tool for enhancing functionality, these applications make JavaScript a requirement. Core functionality is carried out with JavaScript, resulting in an all-or-nothing situation for the user."

Page 116:

"Just because you've hired a waiter doesn't mean you can fire the cook. Yet this is exactly what some Ajax applications attempt to do. Not content with having a waiter take orders and bring food, they get the waiter to do all the cooking too. Cooking should happen in the kitchen. Application logic belongs on the server. It's better for everyone that way. Your application will work more consistently when it's server-based. The browser environment is simply too unpredictable."

I also appreciated Jeremy's subtle sense of humor throughout the book: telling of the origins of the name Ajax, dating back to Greek mythology, and adding a tie-in with the name Jason when referring to JSON. If you didn't know, he's quite a trivia guru, especially when it comes to Star Wars Trivial Pursuit.

I applaud that Jeremy is using XHTML 1.0 Strict throughout this book, as opposed to XHTML 1.1 as in DOM Scripting. It avoids confusion over content-type: text/html vs. application/xhtml+xml. After all, the W3C themselves serve XHTML 1.0 Strict as text/html.

Overall, this book was a delight to read. It covers all the important aspects of Ajax, and even shows a few server-side examples written in PHP. Multiple techniques are addressed, including XML, JSON and innerHTML.

It gets you thinking, rather than ignorantly assuming that you're working in a controlled environment. Many server-side developers neglect accessibility and usability because they're too busy using bloated frameworks without understanding the underlying client-side principles. Quite frankly, I'm sick of it. Luckily, there's finally a book teaching the right way.

Page 196:

"Question the way you implement Ajax. Question the impact Ajax will have on your users. Question the need to use Ajax at all."

Summary of Bulletproof Ajax

Step-by-step guide reveals best practices for enhancing Web sites with Ajax

  • A step-by-step guide to enhancing Web sites with Ajax.
  • Uses progressive enhancement techniques to ensure graceful degradation (which makes sites usable in all browsers).
  • Shows readers how to write their own Ajax scripts instead of relying on third-party libraries.

Web site designers love the idea of Ajax--of creating Web pages in which information can be updated without refreshing the entire page. But for those who aren't hard-core programmers, enhancing pages using Ajax can be a challenge. Even more of a challenge is making sure those pages work for all users. In Bulletproof Ajax, author Jeremy Keith demonstrates how developers comfortable with CSS and (X)HTML can build Ajax functionality without frameworks, using the ideas of graceful degradation and progressive enhancement to ensure that the pages work for all users. Throughout this step-by-step guide, his emphasis is on best practices with an approach to building Ajax pages called Hijax, which improves flexibility and avoids worst-case scenarios.

Internet Books

Book Subjects
Most talked about in Internet Books
PHP and MySQL by Example ImagePHP and MySQL by Example
by Ellie Quigley, Marko Gargenta
Prentice Hall; Published: 2006-12-02; Paperback; Book
Best price: $25.99
Price in other shops: $54.99
Navigate the Net: A Comprehensive Learning Experience for Travel Professionals ImageNavigate the Net: A Comprehensive Learning Experience for Travel Professionals
by Shelly M. Houser
Prentice Hall; Published: 2002-05-24; Paperback; Book
Best price: $12.50
Price in other shops: $61.60
Elijah Lovejoy's ASP Training Course (Complete Video Course) ImageElijah Lovejoy's ASP Training Course (Complete Video Course)
by Elijah Lovejoy
Prentice Hall PTR; Published: 2001-12-18; Hardcover; Book
Best price: $66.49
Price in other shops: $69.99
Weaving a Website: Programming in HTML, Java Script, Perl and Java ImageWeaving a Website: Programming in HTML, Java Script, Perl and Java
by Susan Anderson-Freed
Prentice Hall; Published: 2001-08-16; Paperback; Book
Best price: $19.93
Price in other shops: $110.00
Online Resource Guide for Law Enforcement ImageOnline Resource Guide for Law Enforcement
by Timothy M. Dees
Prentice Hall; Published: 2001-06-30; Paperback; Book
Best price: $1.99
Price in other shops: $44.80
Core Servlets and Javaserver Pages: Core Technologies, Vol. 1 (2nd Edition) ImageCore Servlets and Javaserver Pages: Core Technologies, Vol. 1 (2nd Edition)
by Marty Hall, Larry Brown
Prentice Hall; Published: 2003-09-05; Paperback; Book
Best price: $27.75
Price in other shops: $64.99
Publish it on the Web! Windows, Second Edition ImagePublish it on the Web! Windows, Second Edition
by Bryan Pfaffenberger
Academic Press; Published: 1997-08-13; Paperback; Book
Best price: $9.00
Price in other shops: $37.95
Big Book of FYI RFCs (Big Books) ImageBig Book of FYI RFCs (Big Books)
Morgan Kaufmann; Published: 2000-08-15; Paperback; Book
Best price: $8.50
Price in other shops: $34.95
HITTESDORF CORBA/IIOP CLEARLY EXPLAINED (Clearly Explained) ImageHITTESDORF CORBA/ IIOP CLEARLY EXPLAINED (Clearly Explained)
by Michael Hittesdorf
AP Professional; Published: 2000-03-01; Paperback; Book
The Internet Outdoor Family Fun Yellow Pages: The Online Guide to the Best Outdoor Family Sites ImageThe Internet Outdoor Family Fun Yellow Pages: The Online Guide to the Best Outdoor Family Sites
by Jack Sanders
International Marine Publishing; Published: 1999-05-25; Paperback; Book
Best price: $15.56
Price in other shops: $19.95
Similar Books and other products
CSS Mastery: Advanced Web Standards Solutions ImageCSS Mastery: Advanced Web Standards Solutions
by Simon Collison, Andy Budd, Cameron Moll
friendsofED; Published: 2009-10-29; Paperback; Book
Best price: $18.98
Price in other shops: $39.99
JavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides) ImageJavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides)
by David Flanagan
O'Reilly Media; Published: 2011-05-10; Paperback; Book
Best price: $27.48
Price in other shops: $49.99
jQuery Cookbook: Solutions & Examples for jQuery Developers (Animal Guide) ImagejQuery Cookbook: Solutions & Examples for jQuery Developers (Animal Guide)
O'Reilly Media; Published: 2009-12-03; Paperback; Book
Best price: $17.40
Price in other shops: $34.99
Bulletproof Web Design: Improving flexibility and protecting against worst-case scenarios with XHTML and CSS (2nd Edition) ImageBulletproof Web Design: Improving flexibility and protecting against worst-case scenarios with XHTML and CSS (2nd Edition)
by Dan Cederholm
New Riders Press; Published: 2007-08-19; Paperback; Book
Best price: $20.00
Price in other shops: $39.99
Introducing HTML5 (Voices That Matter) ImageIntroducing HTML5 (Voices That Matter)
by Bruce Lawson, Remy Sharp
New Riders Press; Published: 2010-07-21; Paperback; Book
Best price: $13.85
Price in other shops: $34.99
JavaScript: The Good Parts ImageJavaScript: The Good Parts
by Douglas Crockford
Yahoo Press; Published: 2008-05; Paperback; Book
Best price: $16.55
Price in other shops: $29.99
Effortless E-Commerce with PHP and MySQL ImageEffortless E-Commerce with PHP and MySQL
by Larry Ullman
New Riders Press; Published: 2010-10-31; Paperback; Book
Best price: $19.98
Price in other shops: $34.99
DOM Scripting: Web Design with JavaScript and the Document Object Model ImageDOM Scripting: Web Design with JavaScript and the Document Object Model
by Jeremy Keith, Jeffrey Sambells
friendsofED; Published: 2010-12-27; Paperback; Book
Best price: $21.89
Price in other shops: $34.99
jQuery: Novice to Ninja ImagejQuery: Novice to Ninja
by Earle Castledine, Craig Sharkie
SitePoint; Published: 2010-03-07; Paperback; Book
Best price: $39.67
Price in other shops: $39.95
DOM Scripting: Web Design with JavaScript and the Document Object Model ImageDOM Scripting: Web Design with JavaScript and the Document Object Model
by Jeremy Keith
friendsofED; Published: 2005-09-20; Paperback; Book
Best price: $12.86
Price in other shops: $34.99
Book store. Illustrated catalog of books on different categories