2013년 10월 14일 월요일

Loading data with AJAX

Ext.Ajax.request({
url: 'ajaxRequest.json',
success: function(response, options){
console.log('The Success function was called.');
console.log(response.responseText);
},
failure: function(response, options){
console.log('The Failure function was called.');
var statusCode = response.status;
var statusText = response.statusText;
console.log(statusCode + ' (' + statusText + ')');
},
callback: function(options, success, response){
console.log('The Callback function was called.');
console.log('Successful Request? ' + success);
},
timeout: 60000 //60 seconds (default is 30)
});

댓글 없음:

댓글 쓰기