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  
Forums Sitemap 
Dedicated Servers  
Download TestComplete 
JMSL Numerical Library 
IBM® developerWorks
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!


    NEW! IBM – Taking Web 2.0 to Work

    David Barnes, Lead Evangelist for IBM Emerging Internet Technologies 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! Application Development Tools for the Mainframe Developer

    You probably have thousands of lines of COBOL code loaded with business intelligence and being used to run your business, along with an army of developers maintaining these applications. Learn how to prepare your applications and developers so you can keep that competitive edge and move to a service-oriented architecture with the IBM Rational Enterprise Modernization solutions. Replay is available for 9 months.
    FREE! Go There Now!


    NEW! Best practices for software analysis: An introduction to the IBM Rational Software Analyzer application

    This whitepaper presents the benefits of successfully introducing static analysis into your organization using IBM Rational Software Analyzer. Additionally, it identifies some common pitfalls that can hinder the effective use of static analysis tooling as well as presents 10 simple strategies designed to help you quickly realize the value of static analysis using Rational Software Analyzer.
    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! Download the free Web Application Security eKit

    Discover how IBM Rational AppScan Standard Edition can help you detext vulnerabilities in your web applications in the Web Application Security eKit. IBM Rational AppScan is a leading suite of automated web application security solutions that scan and test for common Web application vulnerabilities. The new Web Application Security eKit provides you with valuable resources, including white papers, demos, and additional information on the benefits of testing your Web applications.
    FREE! Go There Now!


    NEW! Evaluate Rational Host Access Transformation Services (HATS) Toolkit V7.1

    Visit IBM developerWorks to download a free trial of the Rational Host Access Transformation Services (HATS) Toolkit. The HATS toolkit provides a set of plug-ins for the IBM Rational Software Delivery Platform to help you easily extend your legacy applications. HATS makes your 3270 and 5250 applications available as HTML through the most popular Web browsers, while converting your host screens to a Web look and feel and it also enables you to develop new Web, portal, and rich-client applications.
    FREE! Go There Now!


    NEW! Hello World: WebSphere Service Registry and Repository

    Manage, govern, and share services across your organization by using WebSphere Service Registry and Repository. Follow the hands-on exercises to learn how to navigate the Web interface to publish, find, reuse, and update services.
    FREE! Go There Now!


    NEW! IBM Enterprise Modernization Sandbox for System z

    IBM Enterprise Modernization solutions help organizations evolve core IT systems towards modern architectures and technologies—reducing the burden of maintenance and freeing up resources to develop new business requirements and capabilities. With the IBM Enterprise Modernization Sandbox for System z you can evaluate IBM Enterprise Modernization solutions focused on five key areas: Assets, Architectures, Skills, Processes and Infrastructures, and Investment. Each solution is based upon real customer experiences and offers a proven path to get you started with your modernization projects.
    FREE! Go There Now!


    NEW! IBM Rational ClearCase Innovator's Series

    Learn from the best! Find out how developers use Rational ClearCase to be more flexible, innovative and deliver higher quality code in the Rational ClearCase Power Users eKit. This complimentary eKit provides a collection of materials, like articles, whitepapers, and demos that can help you become a power user of Rational ClearCase.
    FREE! Go There Now!


    NEW! IBM Rational Systems Development e-Kit

    As systems increase in complexity, communication between systems and software teams becomes more and more difficult. Now, there’s a way to improve product quality and communication.<br />Read the “Model Driven Systems Development” white paper to see how. Also included in this kit are more educational white papers, customer examples, tutorials, informative Webcasts, and best practices for designing, building and managing systems.<br />
    FREE! Go There Now!



    All FREE IBM® developerWorks Tools!

    MISCELLANEOUS REVIEWS ARTICLES

    - 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-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway