/ Published in: Other
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
/**
* 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
Comments
 Subscribe to comments
                    Subscribe to comments
                
                