Ajax for Web Application Developers

  Author:    Kris Hadlock
  ISBN:    0672329123
  Sales Rank:    393145
  Published:    2006-10-17
  Publisher:    Sams
  # Pages:    448
  Binding:    Paperback
  Avg. Rating:    4.0 based on 7 reviews
  Used Offers:    4 from $13.95
  Amazon Price:    $25.13
  (Data above last updated:  2009-01-02 12:22:19 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Ajax for Web Application Developers
  

Reusable components and patterns for Ajax-driven applications

Ajax is one of the latest and greatest ways to improve users’ online experience and create new and innovative web functionality. By allowing specific parts of a web page to be displayed without refreshing the entire page, Ajax significantly enhances the experience of web applications. It also lets web developers create intuitive and innovative interaction processes.

Ajax for Web Application Developers provides the in-depth working knowledge of Ajax that web developers need to take their web applications to the next level. The book shows how to create an Ajax-driven web application from an object-oriented perspective, and it includes discussion of several useful Ajax design patterns.

This detailed guide covers the creation of connections to a MySQL database with PHP 5 via a custom Ajax engine and shows how to gracefully format the response with CSS, JavaScript, and XHTML while keeping the data tightly secure. It also covers the use of four custom Ajax-enabled components in an application and how to create each of them from scratch.

The final section of the book combines the individual code examples and techniques from earlier chapters of the book into one larger, Ajax-driven application–an internal web mail application that can be used in any user-based application, such as a community-based web application. Readers will learn not only how to create and use their own reusable Ajax components in this application

but also how to connect their components to any future Ajax applications that they might build.

Web Development/Ajax/JavaScript

$34.99 USA / $43.99 CAN / £24.99 Net UK

                  Reader Reviews 1 - 9 of 9                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
02-05-08 5 (NA)
(Hide Review...)  Ajax is the future of Web API
Reviewer Permalink
I am web designer and i have a multimedia and web developer company. I buy this book because i think that AJAX is the next generation of code for web API. This book is very good, it talk in developer language and you can learn about AJAX with single excercise.
(Review Data Last Updated: 2009-01-02 12:26:09 EST)
04-28-07 2 3\3
(Hide Review...)  Where's the source?
Reviewer Permalink
Well, I bought the book, went to samspublishing/register, and registered it. I answered their (way-too-long) "profiling" survey. I found the "book support and downloads" link [...] and entered the ISBN. There's nothing there but the TOC and a sample chapter.

So, like other readers, I ask: where's the source? (and the errata?)


As for the book itself... I had high expectations, but I was rather disappointed. I agree with an earlier reviewer that the examples demonstrate good coding practices, but I wouldn't recommend it for anyone who doesn't already have a firm grasp of Ajax and OO concepts. If you're coming from the Javascript side with no grounding in OOP, you're probably going to be lost.

The author makes a lot of assumptions and unsupported assertions (not necessarily incorrect, mind you, just irritatingly unsupported) about the approaches he's chosen. There's "what," but not much "why."

Some of his examples make me wonder about his grasp of web standards and design. For instance, he builds an webmail "datagrid" (an inbox listing From, Subject, and Date) using DIVs (fixed-width, absolute-unit DIVs at that). Why DIVs? I'm all about web standards, but web standards say "use a table (TABLE, TR, TD) for tabular data" and this is clearly tabular data. Using a table would also allow for more appropriate column widths--I don't know about you, but I need more width for a Subject column than for Date--while remaining eminently stylable with CSS. If there's some reason he chose to use DIVs instead, he doesn't give it. ("This way of structuring data is common practice among web applications," he says--another unsupported assertion.)

Last but not least, I'm not crazy about the author's writing style. For instance, I'd like to see him excise the words "simple/simply" (as in, "instantiating an object is simply the act of...," "object constructors are simply a regular Javascript function...") from his writing. It seems to occur about three times per two-page spread, and that's simply too often. It's simple to avoid this verbal tic; simply search for the word, or ask your editor to-- well, you get the idea. If it's all so simple, why bother writing a book about it?

Things I liked:
- all meat, no filler
- the merciful omission of the "history of Ajax" chapter that most books seem to insist upon :-)
- the explicit linking of design patterns to code snippets
- a good discussion of error handling
- some clever ideas in the feedback/warning section (though also some bad ones, like
(Review Data Last Updated: 2007-07-11 21:03:50 EST)
04-28-07 2 2\2
(Hide Review...)  Where's the source?
Reviewer Permalink
Well, I bought the book, went to samspublishing/register, and registered it. I answered their (way-too-long) "profiling" survey. I found the "book support and downloads" link (http://www.samspublishing.com/search/support.asp?rl=1) and entered the ISBN. There's nothing there but the TOC and a sample chapter.

So, like other readers, I ask: where's the source? (and the errata?)


As for the book itself... I had high expectations, but I was rather disappointed. I agree with an earlier reviewer that the examples demonstrate good coding practices, but I wouldn't recommend it for anyone who doesn't already have a firm grasp of Ajax and OO concepts. If you're coming from the Javascript side with no grounding in OOP, you're probably going to be lost.

The author makes a lot of assumptions and unsupported assertions (not necessarily incorrect, mind you, just irritatingly unsupported) about the approaches he's chosen. There's "what," but not much "why."

Some of his examples make me wonder about his grasp of web standards and design. For instance, he builds an webmail "datagrid" (an inbox listing From, Subject, and Date) using DIVs (fixed-width, absolute-unit DIVs at that). Why DIVs? I'm all about web standards, but web standards say "use a table (TABLE, TR, TD) for tabular data" and this is clearly tabular data. Using a table would also allow for more appropriate column widths--I don't know about you, but I need more width for a Subject column than for Date--while remaining eminently stylable with CSS. If there's some reason he chose to use DIVs instead, he doesn't give it. ("This way of structuring data is common practice among web applications," he says--another unsupported assertion.)

Last but not least, I'm not crazy about the author's writing style. For instance, I'd like to see him excise the words "simple/simply" (as in, "instantiating an object is simply the act of...," "object constructors are simply a regular Javascript function...") from his writing. It seems to occur about three times per two-page spread, and that's simply too often. It's simple to avoid this verbal tic; simply search for the word, or ask your editor to-- well, you get the idea. If it's all so simple, why bother writing a book about it?

Things I liked:
- all meat, no filler
- the merciful omission of the "history of Ajax" chapter that most books seem to insist upon :-)
- the explicit linking of design patterns to code snippets
- a good discussion of error handling
- some clever ideas in the feedback/warning section (though also some bad ones, like
(Review Data Last Updated: 2007-05-07 21:54:43 EST)
04-20-07 4 0\2
(Hide Review...)  real world Ajax MVC
Reviewer Permalink
Kris did a really good job to be developer friendly. Even thought there are some "TODO" list in he sample, the coding style is very clean, show real world Ajax MVC implementation. It could be better if Kris can go little deep, for example, mini-MVC inside view object, feel the "display" will be too heavy if object has lots of events attached. Overall, it's a nice reading.
(Review Data Last Updated: 2008-02-15 03:11:11 EST)
03-29-07 5 2\3
(Hide Review...)  Kris shows you engineering side of the AJAX
Reviewer Permalink
I have attended Kris Hadlock's presentation in AJAXWORLD Conference & EXPO last week. I am glad I did because I really wanted to learn how to write reusable JavaScript libraries in my projects. His book is all about AJAX but engineering side of it. Why? because I found not many books out there show you how to capture server errors and record them for debugging and improvement in your project. Not many books show you how to implement the back-end for your frond-end applications. Not many books give you real-world examples. "
Ajax for Web Application Developers" does all for you. It's very simple to understand Kris' codings and explanations because his book is neatly coded and implemented the coding standards.

SOURCE CODES: Demonstrated examples in the book can be downloaded from the publisher. All you need to do is to create an account.

I personally have many AJAX books in my library but specifically liked "Ajax for Web Application Developers".

I strongly recommend it to those who are willing to learn in an easy way to create reusable JavaScript object-oriented libraries and understand the AJAX object methodology.

Good luck

(Review Data Last Updated: 2008-02-15 03:11:11 EST)
03-27-07 3 4\4
(Hide Review...)  No customer service
Reviewer Permalink
Bought the book, liked the author's intent but I ran into one big problem. No source code for the book. I emailed the publisher last week and heard zero back from them.

Note to publishers: Take care of your readers.

I'm afraid customer service is dead. Maybe it has been outsourced.
(Review Data Last Updated: 2008-02-15 03:11:11 EST)
02-16-07 4 4\4
(Hide Review...)  Understand how AJAX/JavaScript toolkits really work, and write your own
Reviewer Permalink
First, let me agree with the previous reviewer who noted that this isn't an AJAX book for beginners. It isn't. I don't think anyone claimed that it was. It's a book for web application developers seeking to incorporate AJAX technology into web applications. I wouldn't expect a book with that kind of scope to be appropriate for beginners. This one certainly isn't, and I'm glad, having read enough beginner AJAX books that go over what an XmlHttpRequest is and explain some of the commonly used "stupid JavaScript tricks", dropping the names of popular frameworks and toolkits along the way without really supplying much information about them.

Having said that: I've been seeking a book with the scope of this book for quite a while now. Not since Nicholas Zakas' book "Professional JavaScript for Web Developers" (which I still highly recommend) has this kind of in-depth coverage of the inner workings of AJAX been offered up. Zakas' book (only two years old) went into great detail about using Javascript to do all the cool things we now know as "AJAX"... without once using the word. (Two years ago the word "AJAX" hadn't reached its present buzzword saturation level, if it had been used much at all.)

Hadlock revisits the technology now that AJAX and the various toolkits and frameworks supporting it (Dojo, script.aculo.us, Google Web Toolkit, etc.) have become commonplace. He doesn't provide a tutorial on how to use a particular toolkit or framework; instead, he explains how you can write an "engine" of your own. He starts with a good intro to AJAX, including explanations of how to use both XML and JSON in the response, moves on to the basic principles of object-oriented JavaScript, and then provides examples of reusable JavaScript components to include in your own JavaScript/AJAX engine. Whether you're seeking to reinvent the wheel and write such an engine yourself, or just have a hankering to understand how a toolkit like Dojo or script.aculo.us is constructed, this is great information. Where Zakas' book was an all-encompassing head first dive into deep JavaScript, this book is a briefer but still quite thorough tutorial that gets to the critical information quickly.

The book also includes useful chapters on security and best practices.

Where the book is lacking is in its coverage of server-side interaction. While it concentrates on PHP, it provides some examples of connecting to ASP.NET and ColdFusion, but... there's no mention whatsoever about Java/J2EE. (Ryan Asleson's "Pro Ajax and Java Frameworks" does provide that very sort of information, covering Struts, Spring, and JSF.) Still, where this book shines is in its in-depth explanation of how JavaScript/AJAX toolkits work and how you build your own or extend existing ones. This is still the only book I've seen that even attempts to do that.
(Review Data Last Updated: 2008-02-15 03:11:11 EST)
12-13-06 3 8\9
(Hide Review...)  New to Ajax? You may want to look elsewhere ...
Reviewer Permalink
I've been working on the Web for a handful+ of years, but save for a brief stunt back in the late 90s, I haven't had much use for JavaScript (with the exception of a few one/two-liners). As such, I came to this book as a new-comer to Ajax.

I also like to learn by way of example, instead of explanation, so code examples are a big plus, if not a requirement.

Unfortunately, from this background, my expectations for this book appear to have been set too high. Granted, it may be because of the lack of full examples in the book (and that they are not available online - more on this momentarily). In fact, that's probably the only thing holding me back.

There's minor errors in code in the book as well, but that's to be expected, and a second edition/printing will fix most of these. By itself, this shouldn't hold you back.

But as a beginner's resource, I'm not sure that this is the book you'd want to pick up. I actually recommend that you take a look elsewhere, particularly online, for how to start with Ajax.

Once you've got the basics down, then you can take a look at this book, as it does provide from very good tips as far as keeping your code standardized.

Had I been the first reviewer, I would have given this book four stars. Since I was not, I have decided to give it three. This is because I feel it's a good book, but not for as large an audience as you may think, based upon reading the description. Again, I feel that this book is more for if you've worked with Ajax, but not in a standard/formal way.


Regarding the code I mentioned above, while it's true that there is a zip file of the code files, I don't feel that it truly contains all of the necessary code. Again, keep in mind that I like to work with full code examples, especially when we're talking about JavaScript (since code is sometimes required in the HEAD, and sometimes not).

I have another Developer's Library book, PHP and MySQL Web Development (the Third Edition), so that's part of why my expectations may have been so high. But, I wasn't expecting the amount of full code that the ColdFusion MX 7 'blue books' provides. ;)

Even if you don't have a working application, let me see where you, the author, are at the end of a section or chapter, even if we're just creating one new file and/or adding code to an existing/new file. This goes for whether you write online or not. If there's code in a chapter, and it's not a snippet, than I'd like to see how the full document's code looks.

I don't care that it's not a complete application, I just may want to have your code on screen while I read through the chapter.
(Review Data Last Updated: 2008-02-15 03:11:11 EST)
11-30-06 4 2\4
(Hide Review...)  easier coding style
Reviewer Permalink
With all the recent buzz (hype) about Ajax, Hadlock goes back to first principles. He shows that it all centres about the XMLHttpRequest object, which he thankfully elides to XHR. This lets a web page get data from the web server, or post data to it, in the form of a background command. Crucially, it does not need the browser to be refreshed. Basically, it can be seen as a loophole, through which the entire Ajax methodology has emerged.

The book explains that XHR gives rise to a programming "style" that is quite different from traditional http coding. As though you are writing a standard application that runs locally. For many programmers, this may have been how you started programming anyway. Plus, http coding has always had a certain stilted awkwardness about it. The coding narrative of the book might seem more natural and easier. One benefit to the programmer is increased productivity. You should be able to code more functionality, and have fewer bugs.
(Review Data Last Updated: 2006-12-13 10:04:27 EST)
  
                  Reader Reviews 1 - 9 of 9                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)