DomAXh: Ajax for Dommies
Written by on May 3rd, 2007 in Ajax News.
“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:
JAVASCRIPT:
-
-
function substituteContent(obj, url){
-
obj.showResponseContent= function(originalRequest){
-
// This is the actual call to the dom translator..
-
domaxh(originalRequest,this); // Here is where the magic happens
-
}
-
// Ajax request using prototype.js
-
obj.myAjax = new Ajax.Request(
-
url, {
-
method: ‘get’, onComplete: obj.showResponseContent.bind(obj)
-
});
-
}
-
Source: Ajaxian
Original Article: http://ajaxian.com/archives/domaxh-ajax-for-dommies
