Miscellaneous Reviews
  Home arrow Miscellaneous Reviews arrow AJAX Patterns And Best Practices
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MISCELLANEOUS REVIEWS

AJAX Patterns And Best Practices
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2006-03-26

    Table of Contents:

    Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    AJAX Patterns And Best Practices
    By: Christian Gross
    Published by Apress

    "AJAX Patterns And Best Practices" is a theory and strategy book for AJAX. For the uninitiated, AJAX stands for Asynchronous Javascript and XML. In short, it's the technology behind Web 2.0. New data is fetched from the server and/or presented dynamically through client side Javascript that calls server side sources, commonly XML. Instead of refreshing the entire page, individual elements are changed based on user input and new data pulled from the server. Many sites use AJAX: Google Maps, Gmail, Flickr, Digg. Javascript is nothing new, nor is using it to refresh page elements (I think I made my first JS rollover in 1996). Is combining venerable technologies (Javascript and XML) a case of the Emperor's New Clothes? The level of interaction and sophistication makes AJAX a force to be reckoned with. Because of that, it's essential to have a book that covers the underpinnings of this technology.

    By : Mike DeWolfe

    After the introduction, the book gets into the nuts and bolts of AJAX in Chapter 2. AJAX isn't a programming language: it's a concept. Because of that its essential to get the level of depth that this book delivers-- otherwise you'd be coding by rote. At the core of AJAX is the XMLHttpRequest object and this book gets into the nitty-gritty of the associated methods and properties. In that need for depth I have two criticisms. First, in key areas this book gets vague. At the core of the AJAX code covered in this book is the "factory.js" script. Instead of including the code or a direct reference to the code, the author suggests that you do a Google search to find the same. In defense of the book, the source code on the Apress site includes an example of this code. While AJAX can call on any XML data source, browsers can only launch HTML DOM changing code from the same domain as the page: anything else is a cross-site script, an XSS exploit. There are strategies for workaround but they are only alluded to. A huge aspect of powerful AJAX is more than its ability to show/hide HTML chunks to a page, but to create and destroy necessary HTML by adding individual HTML elements. That capability is glossed over. Second: the server-side code examples are written in C# or Java. C#, Java and PHP are all similar, so you should be able to adapt code examples, but if you want drag and drop example of PHP code, this book presents a problem. (Fear not: "Beginning Ajax with PHP: From Novice to Professional" is coming soon from Apress).

    True to the title of this book, it is packed with good theoretical discussions of how AJAX works; and good strategies for how to use AJAX. Knowing all of the tricks isn't worth much unless you can apply your knowledge in a meaningful way. An example of what impressed me was the material on caching strategies: AJAX has always struck me as being a high-transfer way to presenting information and this section instead makes AJAX into a means of saving traffic.

    Much of this book covers patterns. How do you divide data for distribution (Content Chunking Patterns)? How do you effectively maintain state or at least impression of maintenance (persistent communications pattern)? How do you make all of the potential data available at the user's fingertips (infinite data pattern)? In the nine patterns presented the author explores much of theory and that helps strategize when it comes time to code your own applications.

    For me, I was tired of being pelted with the AJAX buzz word from websites and blogs. Examples were copious and usable theory was sparse. This book came as a welcome relief: I know how to write Javascript, I know what XML is. What I needed to know was how to stitch the Emperor's New Clothes together. This book accomplished that.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More Miscellaneous Reviews Articles
    More By Codewalkers

     

    IBM® developerWorks developerWorks - FREE Tools!


    IBM – Taking Web 2.0 to Work

    You'll get answers to many questions and more from David Barnes, Lead Evangelist for IBM Emerging Internet Technologies. David will discuss aspects of Web 2.0 that bring value to corporations, academia, and government. He'll also discuss IBM's vision around Web 2.0, including the importance of remixability and consumability. The discussion will culminate with examples of various IBM Software Group solutions you can use to get ahead of the Web 2.0 adoption curve.
    FREE! Go There Now!


    NEW! Cook up Web sites fast with CakePHP, Part 4: Use CakePHP's Session and Request Handler components

    CakePHP is a stable production-ready, rapid-development aid for building Web sites in PHP. This "Cook up Web sites fast with CakePHP" series shows you how to build an online product catalog using CakePHP.
    FREE! Go There Now!


    NEW! Develop Systems Software Assets with IBM Rational Asset Manager

    Join us for this on demand webcast to learn about developing complex systems more quickly and efficiently. We'll cover market drivers for developing, governing and reusing systems software assets and how you can develop system software assets with Rational Asset Manager.
    FREE! Go There Now!


    NEW! Integrating XML into Your Enterprise Using Data Federation

    XML has become a common way of storing business data as flat files and many data server vendors including IBM have provided ways to store this data within relational database systems. Increasingly collections of XML files are accessed like databases using an xQuery and other XML standard mechanisms. Businesses find the need to combine the traditional tabular structured data with XML formatted data. In this webcast, you’ll learn about IBM’s WebSphere Federation Server technology, which provides users with the ability to integrate these two data formats.
    FREE! Go There Now!


    NEW! Rational Asset Manager eKit

    Learn how to do more with your reusable assets with the free Rational Asset Manager eKit. The eKit includes demos on how Rational Asset Manager tracks and audits your assets in order to utilize them for reuse. Plus you’ll find white papers and a Webcast that discuss the challenges of a Service Oriented Architecture and how Rational Asset Manager can provide quick and effective solutions.
    FREE! Go There Now!


    NEW! Rational Modeling Extension for Microsoft.Net

    Rational Modeling Extension for Microsoft .NET enhances usability for code generation supporting a more intelligent refactoring. The latest enhancements enable organizations with Java and .NET systems and software development maintain architectural integrity across heterogeneous platforms.
    FREE! Go There Now!


    NEW! Software Change and Configuration Management Solution Guidelines

    This whitepaper provides areas to consider when evaluating any software configuration management solution. It addresses how the IBM solutions (Rational ClearCase and Rational ClearQuest) meet the needs and requirements of both project leaders and developers to provide successful Software Change and Configuration Management.
    FREE! Go There Now!


    NEW! Test terminal-based applications with Rational Functional Tester

    Regression testing -- in which code is thoroughly tested to ensure that changes have not produced unexpected results -- is an important part of any development process. But many testing environments neglect the terminal-based applications that still form the backbone of many industries. In this tutorial, you'll learn how the Rational Functional Tester Extension for Terminal-Based Applications works with other Rational Functional Tester to help test terminal-based applications quickly and easily.
    FREE! Go There Now!


    NEW! Trial download: IBM Rational Performance Tester V7.0.1

    Get a free trial download of the latest version of IBM Rational Performance Tester V7.0.1, a load and performance testing solution for teams concerned about the scalability of their Web-based applications. Combining multiple ease-of-use features with granular detail, Rational Performance Tester simplifies the test-creation, load-generation and data-collection processes that help teams ensure the ability of their applications to accommodate required user loads.
    FREE! Go There Now!


    NEW! Webcast: Introducing the new Information Server and Solutions community: LeverageInformation

    User communities play an important role in communication and collaboration around products, solutions and other areas of special interest to members. Successful communities are able to provide the right mix of content and services to deliver a value proposition that resonates with each audience. Join Tom Inman, VP of Marketing for Information and Platform Solutions as he introduces the new LeverageINFORMATION community. During this webcast, learn about the value provided by the community and how customers and partners derive value from the community in addressing their own technical and business challenges.
    FREE! Go There Now!



    All FREE IBM® developerWorks Tools!

    MISCELLANEOUS REVIEWS ARTICLES

    - Book Review: Learning Nagios 3.0
    - Book Review: CISSP in 21 Days
    - Ajax Design Patterns: Creating Web 2.0 Sites...
    - Review of 2006 NYPHP Convention
    - Ajax For Dummies
    - Foundations of Ajax
    - AJAX Patterns And Best Practices
    - Learning Perl
    - Web Standards Solutions: The Markup and Styl...
    - CSS Cookbook
    - Flash Hacks





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek