PDA

View Full Version : Ext.ajax.request



uptodate
22 Feb 2010, 11:52 PM
What is the different between :


Ext.Ajax.request({
url: 'ajax_demo/sample.json',
success: function(response, opts) {
var obj = Ext.decode(response.responseText);
console.dir(obj);
},
failure: function(response, opts) {
console.log('server-side failure with status code ' + response.status);
}
});And

Ext.Ajax.request({
url: 'ajax_demo/sample.json',
callback: function(options, success, response)
{

}
});The different between : success, faliure and callback

Animal
23 Feb 2010, 12:12 AM
In what way does the documentation fall short in this respect?