Thursday, May 3rd, 2007

DomAXh: Ajax for Dommies

Category: JavaScript, Library

“Ajax for Dommies”. That is nice and corny. DomAXh is a simple Ajax library that allows you to kick off requests to xhtml data and have it placed into your document.

The homepage itself has arrows that flip through content:


  1. function substituteContent(obj, url){
  2.  obj.showResponseContent= function(originalRequest){
  3.  // This is the actual call to the dom translator..
  4.  domaxh(originalRequest,this); // Here is where the magic happens
  5. }
  6. // Ajax request using prototype.js
  7. obj.myAjax = new Ajax.Request(
  8.   url, {
  9.     method: 'get', onComplete: obj.showResponseContent.bind(obj)
  10.   });
  11. }


Posted by Dion Almaer at 5:29 am

2.2 rating from 25 votes


Comments feed TrackBack URI

Quote from their site: “Actually its revolutionary, and it will probably be one of the most important scripts that will allow the masses to add Web 2.0 behaviour to their web sites and applications. Why? Because it lets you write your ajax responses in plain valid (X)HTML, including css and javascript inclusions, imbedded scripts, images, etc.”
Dudes… it’s not revolutionary, it’s called the AHAH pattern (, and you didn’t invent it. Yay, good… you’re on to something past traditional AJAX… so are others :-)

To DomAxh authors: Please don’t take this comment the wrong way. I’m sure your stuff is good, but please try to refrain from silly comments like the one I pulled from your site above.

Comment by Ryan Gahl — May 3, 2007

The key, I think, is that they are presenting an alternative to innerHTML. Anyone know a way to implement AHAH without using innerHTML? Does it work in MSIE with imbedded scripts? stylesheets? .css and .js files? That is the niche that they seem to try to be filling

Comment by Thomas W — May 3, 2007

From Wikipedia ( “Like Ajax, the XMLHTTP functionality is used […] but rather inserts the response directly into the intended target element of the document using the non-standard innerHTML attribute of elements.” So basically i get that it implements the AHAH model but without using innerHTML.

Comment by Jonathn Hernandez — May 3, 2007

This is using innerHTML as everybody else when it’s needed. line 131


The fact that it’s on ajaxian and have silly “marketing” comments on the website doesn’t make it revolutionary at all.

And imo this is not a really efficient code, example line 39 to 45

if(data.getElementsByTagName(“script”).length > 0){
for (i = 0; i

Comment by Laurent V. — May 3, 2007

I’ve given up dissing things because they’ve been done before. Good on you guys, its worth reporting these things.

Comment by stu — May 4, 2007

Taconite is similar in concept to this library except that it is much more powerful and more mature.

Comment by Ryan — May 7, 2007

I was coming here to say Taconite is already the best XHR library available. Ryan beat me to it. :D

Comment by Giggle Platypus — May 8, 2007

Leave a comment

You must be logged in to post a comment.