Slashdot Mirror


Building Richly Interactive Web Apps with Ajax

FalsePositives writes "Ajax: A New Approach to Web Applications (from Adaptive Path and via Jeffery Veen) introduces their experiences with what they are calling 'Ajax' as in 'Asynchronous JavaScript + XML' aka the XmlHttpRequest Object. It is used by Google (Google Maps, Google Suggest, Gmail), in Amazon's A9, and a few others (like the map of Switzerland spotted by Simon Willison). ... Is this 'The rise of the Weblication'?"

16 of 358 comments (clear)

  1. Also Check out Bits of News by Masq666 · · Score: 1, Informative

    This site also has a lot of news. Ajax seems to me to be a realy good technology, if google uses it it has to be at least of some use. XML itself it realy good if you use it the right way.

    --
    Bits of News Giving you the latest bits.
  2. new acronym by Anonymous Coward · · Score: 5, Informative


    old technology, noob developers

    remote scripting has been around since 1998 with Dan Steinmans DynAPI, then Brent Ashley published his remote scripting and a plethora of remote scripting projects popped up on sourceforge

    the only thing new here are the developers/kids calling it Ajax when its nothing new or original at all, not to mention MS has had remote data binding on elemnts since IE4 !

    sheesh

  3. Re:Weblication? by stupidfoo · · Score: 4, Informative

    I thought JSON was the new hotness?

  4. Too skimpy? by Quixote · · Score: 2, Informative

    I RTFA (I know, I should burn my /. membership card), but I got the feeling that the entire article could be summarised in a paragraph or two. There was a lot of handwaving, and not enough nuts-and-bolts stuff. I was looking for simple examples, etc. but other than links to Google's myriad offerings, there wasn't much else.

    1. Re:Too skimpy? by TedTschopp · · Score: 3, Informative

      Check out Apples site and their example

      Very cool stuff.

      --
      Fantasy remains a human right; we make in our measure and in our derivative mode... -- JRR Tolkien
  5. Sounds a lot like JPSpan by misleb · · Score: 5, Informative
    Does anyone know how Ajax compares with JPSpan? I've been using JPSpan in a Firefox plugin that I am working on and it is really nice. Basically it takes a PHP class and presents it to your JavaScript as a JavaScript object (after you create an isntance of it). As far as your web application is concerned, the object exists in the local context, but actually, the code is running on a remote server. JPSpan takes care of the XmlRequest stuff for you.

    -matthew

    --
    "THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
  6. Re:Java app by Hamfist · · Score: 5, Informative

    Our company is arriving a bit late to the 'intranet' party, and I'm developing our Intranet in this style. Where you really notice the difference is:

    1. Speed - It f'ing fast
    2. Startup time - Instant
    3. Footprint - small
    4. Browser support - surprisingly consistent. Event models need some work, including Firefox.

    Did I mention that it's fast? Check out google suggest, realize that there's a round trip to the server going on in the background, and you'll get the picture.

    It also maintains suprisingly light code. You just register an event handler of some DOM element, and let the teensy bits of javascript pull up some fresh XHTML. This technique fits very well with simple event driven programming.

    Another nice thing is that you can use most whatever as a callback. I'm using good old PHP, as PHP snippets are fast and lightweight.

    I suspect we will be seeing alot much more of this.

  7. nothing to see here... move along... by DosPinas · · Score: 2, Informative

    This article describes an architectural concept NOT an actual technology. AJAX, is similar to Client-Server in that it implies a mode of development for a given network topology and NOT an actual toolset. The richer interaction of remote scripting techniques will provide a significant challenge to XFORMS as it will be unable to compete with the functionality. XFORMS is what web driven apps should have been in '97, the new class of techniques using Javascript,CSS,xmlhttprequest and other DHTML tools are the way forward.

  8. Re:AJAX? by Adhemar · · Score: 5, Informative
    Isn't that a cleaning powder?
    Yes, it is
    • a cleaning powder
    It is also
    • an ancient Greek king in Homer's Iliad. Well actually two:
      • Ajax the lesser of Locrian Ajax, son of Oileus, king of Locris
      • Ajax the Great or Telamonian Ajax, son of Telamon, king of Salamis
    • a Dutch football (in the soccer sense) team of Amsterdam, already mentioned
    • several ships of the Royal Navy
    • as already mentioned, a place in Ontario, Canada, named after one ot these ships
    • a character on the animated televion series Duckman
    • a car (actually several models)
    • several companies: a Californian boiler company, a Dutch fire security company.
    • a buzzword for a combination of technologies, see this Slashdot story.
  9. XmlHttpRequest The Easy Way by coldcanofbeer · · Score: 4, Informative
    For an easy to understand tutorial of XmlHttpRequest, check out http://www.webpasties.com/xmlHttpRequest/

    There you will be guided with baby steps on how to implement a city, state lookup based on zip.

  10. Re:web content developer toting new web design? by mmilan · · Score: 2, Informative

    Adaptive Path is not a web design company. They provide user experience (information architecture, interaction design, etc) expertise and help people plan sites. The implementation is almost always done by someone else.

    Garret is a user experience guru - He's writing about this framework from the perspective of a user advocate, not a developer or a designer.

    The point of his article is that the user experience is improved with Ajax. He's not trying to sell you a new car, he's suggesting that end users (customers) will be better server with this approach in many cases.

    But maybe you want to continue to write huge java applets or flash sites that take 30+ seconds to load. Don't expect to feed your family though.

  11. Re:I Call Marketing Bull$hit by Anonymous Coward · · Score: 1, Informative

    You mean after this point of fact they mention?

    Google Suggest and Google Maps are two examples of a new approach to web applications that we at Adaptive Path have been calling Ajax.

  12. Re:Java app by blackpaw · · Score: 2, Informative

    Your're using a synchronous requests - Firefox/Mozilla have appalling performance on sync calls (10+ seconds). Its a interesting contrast with IE

  13. I used it for a state wide web app. by davegust · · Score: 2, Informative

    I (and my business partner) used this technique 5 years ago to develop the budgeting system used by all Idaho state agencies. It uses IE5 with a few ActiveX controls (grid, custom combo boxes) bound to an XML data source. The result is a rich application-like experience within the browser.

    The back end is IIS + SQL Server. The server runs in Boise. Hundreds of users from dozens of agencies around the state manage their complex budgeting process with this app.

    XMLHTTP was a key technology in Microsoft's plan to use IE as the business app environment. Databinding to native HTML controls was pretty cool - 5 years ago.

    If you want links, try this, this, or this. It's even taught in vocational programming courses.

  14. Re:Java app by beanlover · · Score: 2, Informative

    data.open("GET",url,true);

    The "true" as the third argument sets it to async according to this page.

    B

  15. Not First by xant · · Score: 2, Informative

    Hi, try http://nevow.com and take a look at livepage and canvas. This isn't magic, people.

    --
    It's rare that you're presented with a knob whose only two positions are Make History and Flee Your Glorious Destiny.