AJAX vs AJAH? 11

Posted by Jimmy'z on August 29, 2006

Since I’ve made the jump into CakePHP, I’ve begun using the Prototype javascript libraries. If you’re a Javascript programmer, and have never used prototype.js, you’re in for a real treat. It handles a lot of your cross-browser issues, and gives a really cool API for building Web 2.0 applications.

Anyways, prototype has a real nice function called Ajax.Updater, which makes a call to your server and replaces an element with the returned html. It makes creating an ajaxy application really nice. But is this really AJAX? Or is it AJAH?

AJAX stands for Asynchronous JavaScript And XML. So I came up with the term AJAH, which stands for Asynchronous JavaScript And HTML. Okay, I know that HTML is a flavor of XML, so technically you can say that it AJAH is AJAX, but I still think there is a difference.

XML is primarily a markup that allows you to send data formatted in such a way computers can read and interpret the data. The data can be extracted at a granular level. With HTML, the elements of data that you are passing are usually not extract-able unless you use micro-formatting.

With true AJAX, a call is made to the server, the nicely formatted data is returned and the client application extracts the data from the xml, and replaces whatever elements need to be replaced on a page. With AJAH, a glob of html is returned and slapped into the page.

So, which is better? I’m not sure at this point. AJAH definitely allows you to create a dynamic site that can talk to the server behind the scenes quickly and easily so I’m fine using AJAH.

Also, I’m working on a CakePHP/Frameworks post… Stay tuned.

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. [...] OK, onto the article. The problem is that I want to attach a JavaScript command to certain elements, in this case a series of links, the command in question will load content from an external resource into the page at a specified point in an AJAXy manner. Well, actually it will be an AJAHy manner, as we’re using HTML rather than XML as the return data type. What does that mean to you? That you don’t have to do any Javascript transformations of XML data. Vive la innerHTML. [...]

  2. [...] solution est une combinaison d’IFRAME et d’AJAH (Asynchronous JavaScript And HTML) dont je suis raisonnablement fier… La page d’accueil valide et fait sourire iCab, et [...]

  3. [...] solution est une combinaison d’IFRAME et d’AJAH (Asynchronous JavaScript And HTML) dont je suis raisonnablement fier… La page d’accueil valide et fait sourire iCab, et [...]

  4. Dougal Fri, 22 Feb 2008 20:47:01 UTC

    I prefer Ajaj. Asynchronous JavaScript And JSON

  5. Tester Sat, 23 Feb 2008 15:58:08 UTC

    Sorry… I’m just testing your comment system to see if it is ajaxified :p
    reCAPTCHA is cool!

  6. Tester Sat, 23 Feb 2008 16:00:00 UTC

    Ok… comments not ajax =((
    I’d like to see some blog tool with ajax comments on HostMonster =(

  7. Jimmy Sun, 24 Feb 2008 00:02:35 UTC

    I’ve seen Ajax-ified comments plug-ins for WordPress, but I’m not quite sure why that would be related to HostMonster. I wouldn’t want my WordPress installation to come with ajax comments right out of the box if you’re referring to the Fantastico installation of WordPress.

    I’m all for Ajax when it enhances the user experience, but I’ve seen more double-posted comments on blogs because the blog uses an ajaxed form that doesn’t give proper feedback such as a spinner, a disabled form, or notification that your comment was posted up above on the page.

    I think Ajax when done right can really improve the overall experience, but can be really frustrating when done only half-way.

  8. Elliot Wed, 14 Jan 2009 04:54:10 UTC

    So what you’re saying really, is that you don’t like things when they’re not done well. That’s not really anything to do with AJAX :)

  9. [...] Comedy Central has only ever had segment/clip feeds. Luckily, the shows’ sites have feed-like AJAH pages that are easily massaged into a true RSS feeds, so here are substitute feeds. Share and [...]

  10. Patryk yarpo Jar Fri, 06 May 2011 02:17:24 UTC

    I wouldn’t say that html is a flavor of XML. XML is an application of XML, but HTML isn’t. :)

    I know you wrote this post long time ago, but now much much better JS framework is jQuery :)

  11. Jimmy Z Fri, 06 May 2011 10:55:21 UTC

    @Patryk,

    I’m not following your on the XML thing, but I completely agree with the jQuery comment.


    Jimmy

Comments