JSDoc Documentation

Summary

AjaxRequest is a JavaScript class designed to make dealing with XMLHttpRequests (or the IE versions thereof) simplier. Example usage:

 <input type="text" name="foo" onchange="update();"/>
 ....
 function update() {
  	var req = new AjaxRequest();
	req.get(
		{ 
		'url'		: "/ajax/update.action",
		'onSuccess'	: updateCallback,
		'onLoading'	: function () { throbber(true); },
		'onDone' 	: function() { setTimeout('throbber(false);',250); }
		});
 }

 function updateCallback(req) { // This is the required signature for a callback
	if (req.responseXML) {
 		// process xml file in javascript
	}
 }
 


Version: 0.2

Author: Marcus R. Breese


File Summary
ajax.js AjaxRequest is a JavaScript class designed to make dealing with XMLHttpRequests (or the IE versions thereof) simplier.


Documentation generated by JSDoc on Thu Mar 2 20:22:37 2006