What makes this AJAX? Where is the asynchronous communication with the server? A time now since I looked at AJAX, but can you use the
XMLHttpRequest Object that is used for asynchronous communication with the server?
Also note that
DOM is intimately integrated with the X (XML) part of AJAX. Very much can be done with
DOM functions and more specifically with
DOM XML functions.
No need to reinvent the wheel.