Return to Snippet

Revision: 9574
at November 12, 2008 14:45 by peteinlux


Initial Code
/**
 * Simple ajax request with callback and json to object deserialization
 */

simpleAjax = function () {

	var received = function (response) {
		x = Ext.decode( response.responseText );
		//console.log(x);
		console.log(this);
	}
	
	Ext.Ajax.request({
	   url: '/files/ux/RemoteComponent/implementation4/grid_generated.php',
	   success: received,
	   failure: function () { console.log('failure');},
	   headers: {
	       'my-header': 'foo'
	   },
	   params: { foo: 'bar' }
	});
	
}	// eo function

Initial URL

                                

Initial Description

                                

Initial Title
EXTJS - Simple ajax request with callback and json to object deserialization

Initial Tags
textmate

Initial Language
Other