Home > Microsoft .Net Development News > Ajax programming: The what, how and when
Microsoft .Net Development News:
EMAIL THIS

Ajax programming: The what, how and when

By Brian Eastwood, Associate Editor
14 Feb 2006 | SearchVB.com

.NET News Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google

Ajax programming has advanced tremendously in the time since Jesse James Garrett coined the now-ubiquitous term Ajax as shorthand for Asynchronous JavaScript and XML. The rest of 2005 brought a flurry of hype, as well as dozens of development tools. In 2006, according to a recent Burton Group report, both the market for Ajax tools and the number of vendors in the space will first grow, and then shrink, as developers understand how best to make Ajax work.

The report, released Jan. 4, indicates that other rich Internet application (RIA) technologies, such as Adobe Flash, Windows Presentation Foundation Everywhere (WPFe) and others, "tend to offer a richer tool set and stronger development platforms." Ajax, conversely, lags behind those products in terms of IDE tooling.
[Ajax] just broadens the accessibility to the Windows Presentation Foundation experience.
Richard Monson-Haefel
senior analyst, Burton Group

"But what we're seeing is that the situation is changing really fast," noted Richard Monson-Haefel, senior analyst, Burton Group, and the report's author. The Eclipse Foundation, led by IBM, recently threw its support behind the Open Ajax initiative, and industry leaders Microsoft and Sun plan to integrate Ajax into their tools. By the end of the year, Monson-Haefel said, Ajax should catch up to those other IDE tools.

A three-tier framework

Unlike HTTP page requests, which rely on a back-end server to update a Web page, Ajax renders page updates on a client's CPU. This allows for asynchronous updates -- changes to one part of a page but not another -- and can result in faster, more responsive applications.

Making Ajax work requires three levels of tools, Monson-Haefel indicates. The first, remoting toolkits, communicate between the Ajax application in the Web browser and the app sitting on the back-end server. The second, UI toolkits, provide pre-defined GUI widgets. The third toolkit, Web framework extensions, integrates Ajax into existing Web frameworks.

Most Web framework extensions also include remoting and UI toolkits.
Ajax Web framework extensions compatible with ASP.NET
  • Ajax.NET
  • Microsoft Atlas
  • Backbase
  • Bitkraft
  • A list of ASP.NET-compatible extensions appears in the box on the right.

    Monson-Haefel's report lists four dozen different Ajax frameworks and toolkits. Given the technology's open-source origins, this is not surprising.

    Monson-Haefel expects the number of Ajax programming products to grow before it starts to shrink, contracting to the point that only a few tools dominate the space -- much like the SOAP toolkit market did. "At first there were dozens of products for SOAP messaging, but now they're using facilities built into vendors' tools and IDEs, and that will probably happen here," he said.

    The current proliferation of tools carries both advantages and pitfalls.

    "What the libraries are doing is solving all of the quirks for you and giving you the right information with the minimum amount of work," said Eric Pascarello, co-author of the book Ajax in Action and an expert on both .NET and JavaScript. "Now a simple call to [a library] will give you the correct height of a div with IE, Firefox and Opera. Using a library will greatly improve the development time."

    On the other hand, Pascarello noted, a lot of libraries lack sufficient documentation, and "you can see the frustration in some developers on the forums trying to figure out how things work." In addition, the turnaround time for fixing bugs in some libraries is an unknown, as they were created during a developer's free time.

    When, and when not, to use Ajax

    The advantage of Ajax programming over tools like Flash and Java applets, Monson-Haefel said, is its seamless integration with HTML content. This allows for incremental implementation of Ajax, as opposed to an all-out redesign. "There's no need to pick up a new presentation element," Monson-Haefel said of Ajax. "It's a seasoning element."
    More Ajax programming resources

    Ajax Learning Guide

    Dynamic Double Combo -- Chapter 9 of Ajax in Action

    Eric Pascarello dissects Ajax security vulnerabilities

    With Atlas, Microsoft's Ajax programming tool, .NET developers can extend the rich functionality available in the Windows Presentation Foundation over the Web browser -- but end users do not need the .NET framework installed. "[Ajax] just broadens the accessibility to the Windows Presentation Foundation experience," Monson-Haefel said.

    Controls such as combination selection lists, stock and news tickers, polls, shopping carts, autocomplete fields and rich ToolTipsText are good candidates for being "Ajaxified," Pascarello said. "Start with a double combo or an autocomplete component and work your way up from the top," he added.

    However, Ajax does offer the capacity to disappoint or frustrate, as bloggers Kevin Burton and Chris McEvoy point out in separate critiques of Windows Live Beta. Commentaries on inappropriate uses of the technology, such Alex Bosworth's "Ajax mistakes" and Joel Spolsky's "Too Many Ajax Calendars, are not hard to find either. (Microsoft aims to address one obvious downside -- bulky JavaScript code -- by including JavaScript libraries in its Atlas tool, which is due for general release later this year.)

    For Monson-Haefel, the pros and cons of Ajax programming are reminiscent of two earlier Internet app developments: Flash screens and pop-ups. Both meant well, but lengthy Web site intros and the plague of pop-up advertisements quickly bothered end users. "If Ajax is used poorly, people could find it annoying to the point that they turn it off. In this case, they'll turn off the JavaScript," Monson-Haefel said. "If you have little dancing paperclips, it's probably going to detract from the user experience."

    Given the immaturity of Ajax technology, the Burton Groups recommends "very small and incremental implementations of Ajax," Monson-Haefel concludes in his report. Ajax works well for lightweight RIA that will complement existing HTML, he suggests, while Flash is better for building a rich GUI.

    Tags: ASP.NET and Ajax developmentVIEW ALL TAGS

    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



    RELATED CONTENT
    ASP.NET and Ajax development
    How to use jQuery to solve Javascript browser compatibility problems
    Silverlight, Ajax components require different approach to UI
    Visual Studio's IntelliSense for jQuery doesn't autocomplete correctly
    Internet Explorer 8 beta's development tools add source visualizations
    Microsoft PDC gives a taste of Windows 7, Visual Studio 2010
    Widgetbox provides good example of how to use Facebook Developer Toolkit
    VBScript Tutorial
    Ajax Learning Guide
    Mainsoft introduces .NET-to-Java translation tool
    Ajax.NET Professional retired

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    Ajax  (SearchWinDevelopment.com)
    Atlas  (SearchWinDevelopment.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Development Solutions - Silverlight, WinForms, ASP.NET
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts