src/io/js/io.js
function NWTIO(args) {
	this.req = new XMLHttpRequest();
	this.config = {};
	this.url = args[0];

	// Data to send as
	this.ioData = '';

	var chainableSetters = ['success', 'failure', 'serialize'],
		i,
		setter,
		mythis = this,

		// Returns the setter function
		getSetter = function (setter) {
			return function (value) {
				mythis.config[setter] = value;
				return this;
			}
		};

	for (i = 0, setter; setter = chainableSetters[i]; i++) {
		this[setter] = getSetter(setter);
	}
}
function NWTIO(args) {
	this.req = new XMLHttpRequest();
	this.config = {};
	this.url = args[0];

	// Data to send as
	this.ioData = '';

	var chainableSetters = ['success', 'failure', 'serialize'],
		i,
		setter,
		mythis = this,

		// Returns the setter function
		getSetter = function (setter) {
			return function (value) {
				mythis.config[setter] = value;
				return this;
			}
		};

	for (i = 0, setter; setter = chainableSetters[i]; i++) {
		this[setter] = getSetter(setter);
	}
}
function NWTIO ( args ) { this . req = new XMLHttpRequest ( ) ; this . config = { } ; this . url = args [ 0 ] ; // Data to send as this . ioData = '' ; var chainableSetters = [ 'success' , 'failure' , 'serialize' ] , i , setter , mythis = this , // Returns the setter function getSetter = function ( setter ) { return function ( value ) { mythis . config [ setter ] = value ; return this ; } } ; for ( i = 0 , setter ; setter = chainableSetters [ i ] ; i ++ ) { this [ setter ] = getSetter ( setter ) ; } }
Provides ajax communication methods
The folllowing methods are chainable
success - success handler
failure - failure handler
serialize - serialize a form, selector, array, or object to send
@constructor
Provides ajax communication methods The folllowing methods are chainable success - success handler failure - failure handler serialize - serialize a form selector array or object to send