October 2, 2006
A very interesting book for experienced programmers.
I’ve reviewed several AJAX books and each has their own slant on the subject. Build Your Own AJAX Web Applications is the first that actually got me to think of AJAX based applications as a replacement for the traditional desktop applications.
… You’d figure I would have clued into this reality before, but for some reason, it only clicked while reading chapter 2!
WHO IS THIS BOOK FOR
Clearly you need to have a web programming background to understand this book. If you’re shaky with programming and object oriented programming is a great mystery to you, then you might find aspects of this book challenging.
- An overview of the basic technologies you’ll need to use to build Ajax applications.
- Understand the XMLHttpRequest object, the core of Ajax applications.
- Build an Ajax application site monitor that works in real time.
- Learn how to use Ajax without breaking older browsers or causing accessibility issues.
- Fix the “Back button” problem.
- Use JSON, YAML, and XML to communicate with the server.
- Create an Ajax search application that pulls data from Amazon, del.icio.us, and Google.
.. yes, I got this list from amazon, but why reinvent the wheel!
I like the fact that the book does a good job of teaching AJAX while not getting bogged down in useless code and text – the book is concise, to the point and thin.
Get the book.
October 1, 2006
by: Richard Mischook – www.killersites.com, www.killerajax.com
Are these really questions from actual users?
OK you got us. Truth be told, the AJAX section of the site is relatively new, so we had to kick back and use our imaginations a bit. That said we feel we have a pretty good feel for the sorts of questions are users might be asking themselves and thatâ€™s what we have presented here.
If you would like to ask your own question please feel free to join in the forum.
So what is this Ajax thing I keep hearing about?
The most obvious feature of this is usually that a user can do things that cause what they see in their web browser to change, without the whole page having to be reloaded (for example add an item to a shopping cart).
What kind of web site would benefit from being Ajax-enabled?
Ajax is about providing the user with an interface that is more application-like and less like a web page. So it stands to reason that web applications would be the best candidates for Ajaxification. More specifically any site that is dynamic in nature and requires a fair amount of user interaction is what we are talking about.
For instance if your site is an online diary where the user simply reads what you have written â€“ well not much use for Ajax here. But if users can respond and post comments then this might make it a candidate for a little Ajax.
If on the other hand your site has lots of things that a user could be doing, some of which take awhile but can happen in the background, then you probably have an ideal candidate site for Ajaxification.
Does the user need any special tools to use an Ajax-enabled web site?
Not really. As long as the user has a relatively recent version of any of the top browsers they should be OK. The browser list includes Internet Explorer, Firefox, Safari and others. The heart of Ajax is a browser component called the XmlHttpObject; In Internet Explorer this component is implemented as an ActiveX component while other browsers have their own mostly-compatible implementation.
Does the developer need any special tools to do Ajax development?
Like plain HTML development, you can use a simple text editor (like Notepad) or your favorite Integrated Development Environment (IDE). Ajax is mainly about using existing tools and technologies to achieve a specific user interaction experience; so it stands to reason that your existing tools should be fine. That said, lots of vendors and open source projects are jumping on the bandwagon and starting to provide Ajax-specific modules as add-ins.
A debugger allows you to step through code as it is being executed so you can figure out what is going on when things go wrong. For Firefox there is the Venkman debugger (http://www.mozilla.org/projects/venkman/) while there are a couple of options for Internet Explorer including the Microsoft Script Debugger and the Microsoft Script Editor (the latter ships with recent versions of Microsoft Office).
Where can I learn how to do Ajax development?
Well this web site is probably a good place to start. You might want to look at our video tutorial which covers Ajax development from the ground up. In the tutorial we look at the foundations of Ajax, and then go on to build a functional shopping cart using Ajax technologies.
You might also want to keep an eye on the Ajax Forum for discussion of Ajax-related issues.
The same goes for PHP and other server side languages. The best thing about this approach is that it means you can continue to work in whichever language you are most comfortable with.
Of course it still helps to understand how things work under the hood when it comes to debugging issues â€“ and there are unfortunately always issues.
by: Richard Mischook – www.killersites.com, www.killerajax.com
June 25, 2006
A collection of AJAX hacks (recipes) coupled with intelligent discussions. A good book to buy for anyone interested in AJAX and modern web application development.
The book begins with a great introduction to AJAX and then provides a useful grab-bag of commonly needed AJAX applications.
- Processing Web forms.
- Validations: credit card numbers, email addresses etc …
What are AJAX ‘hacks’?
AJAX ‘hacks’ are concise code samples that can be used as ‘components (if you will,) that you can plug into your own work.
Besides the usefulness of having a reusable collection like this, you can learn a lot from the ‘hacks’, since each one is coupled with a good discussion.
- Ruby on Rails and AJAX discussions
- Examination of the open source AJAX libraries like Scriptaculous and Rico.
- The concise and clear coverage of AJAX basics.
As with all O’reilly books, the writing is clear and concise and well presented.
May 16, 2006
A couple of points:
- A great book for beginners.
- This book is not well suited for experienced Web programmers because the pace is probably too slow.
Using clever layouts and graphics, along with an easy to understand writing style, Head Rush AJAX makes AJAX very approachable for web designers.
WHAT IS AJAX
AJAX is typically coupled with a server-side technology like:
The server-side languages/environments are used to grab data (say from a database like MySQL) and then hand it off the to AJAX scripts. Wisely, Head Rush AJAX uses PHP as the server-side language to play this role*.
*PHP was the best choice because most web designers are going to jump into PHP over any other language because PHP is easy to learn and is ubiquitous.
HOW THE BOOK TACKLES AJAX
By starting with simple concepts and examples, the book gently takes the reader from humble beginnings to (by the end of the book) where the reader should be comfortable creating AJAX based websites.
- Great examination of basic concepts.
- Good tutorial on DOM scripting – a key component of AJAX
Probably the best web designer centric book on AJAX.
Stefan Mischook (Web Design Heretic)
May 6, 2006
A very good book for experienced web application developers who want to jump into this new way of creating a rich user experience with the web browser.
The writing is clear and straight forward. Each chapter begins with a concise (but informative) theoritical introduction, which is then followed with a practical example that is substantive enough to learn the programming behind the theory, yet not too long that you’ll get bored.
Clearly targetting the enterprise developer, this book covers how AJAX works with:
- XML, XPath and XSLT
- Web Services
You can read rest of the topics covered in the book’s TOC.
A HIGHLIGHT OF THE BOOK
I especially liked a section in chapter two (AJAX Basics) that covers the 3 methods used to create AJAX-like experience:
- The hidden frame technique – what we used to do, to fake it in the late 90’s
- The hidden iframe technique.
- Using the XMLHttpRequest object – true AJAX (IMHO)
It was interesting to see working side-by-side comparisons of the methods available to web developers … and it makes you realize how useful the XMLHttpRequest object is!
What’s even more interesting is how the authors have actually combined these three methods in certain applications to create a more flexible AJAX implementation.
If you are an experienced web developer who wants to learn AJAX, get this book.
May 3, 2006
AJAX In Action targets experienced programmers who may not be familiar with client side Web application development. As such, the book provides a ‘crash-course’ into the basic building blocks of AJAX scripting:
- CSS for styling markup/HTML
- CSS for page layout
- How the DOM (document object model) is used to restructure the page dynamically.
Then perhaps (with some programming experience behind you,) you can come back to AJAX in Action.
WARNING: This review has a 5 star nerd-level … not for beginners.
In a word; a comprehensive book that covers as much ground as could be expected, given the pace of change in the Ajax sphere. Lots of detail here although perhaps a little too much at times â€“ I had to fight to finish it and ended up skimming at times.
Chances are youâ€™ve heard of Ajax â€“ itâ€™s getting a lot of press as the best thing since some other acronym (take your pick). Ajax essentially is a suite of web technologies that allow you to develop web sites that seem more like traditional desktop applications. The web metaphor of click-reload-from-server-click-again is replaced by a user interface that can selectively update itself as the user interacts with it.
There are a number of working Ajax applications in the wild, one prominent example being Google Maps (http://maps.google.com/). The promise of Ajax is of a new generation of distributed applications with better usability and hopefully lots of budgets for those who know how to make them happen.
Rethinking the Web
Part 1 of the book does an overview of Ajax with emphasis on how Ajax applications differ from traditional web sites. In addition the section covers some prominent examples, as well as looking at some alternative technologies such as Flash and Java.
The section then dives into some simple examples of using Ajax technologies like the HttpRequest object and DOM scripting. This provides a nice gentle introduction to the main ideas behind Ajax.
The final section of part 1 looks at some patterns that could/should be used in developing Ajax apps with emphasis on a Model-View-Controller (MVC) framework for client-side Ajax code.
Having dipped our toe (if not our whole leg) in the water, the authors move on and cover the various patterns that one might expect to use in developing an Ajax application. Quite a lot is covered and there is a lot of code. The authors use some concrete examples that are mostly reasonable, although less experienced web developers may not see the relevance of some of the examples.
Part 3 is covers core issues involved in taking an application from the prototype stage to a production application. Issues such as responsiveness and scalability are treated, as are usability issues like providing user feedback (with some example re-usable frameworks provided as examples). In addition security and performance are covered with some good tips on third party tools that can be used to debug hard-to-find problems as you are developing your application.
Ajax by Example
The final part covers the lionâ€™s share of the book and provides some examples of varying complexity. These include code for a double combo box, type ahead suggest (see Google Suggests), a web portal, and others. I did not actually spend a lot of time here as by this point I felt I understood enough of the technologies to use them as I needed. Which is not to say that the code examples are not worth looking at.
All in all a lot of the information in the book can be found on the web, but the book does make it easy to kick back in bed and absorb.
The writing style is very clear although not as entertaining as some technical books I have read lately. I think youâ€™ll find that once you understand the core technologies, stuff starts to get repetitive.
Still the book does a nice job of covering the ground extensively and I recommend it to anyone who wants to learn about writing Ajax applications.