PDA

View Full Version : how to add beforerequest event to ajax request?



extremed
25 Aug 2011, 3:36 PM
how to add beforerequest and requestcomplete event to specific ajax request?

extremed
25 Aug 2011, 4:22 PM
nevermind i think i found solution though


var ajax = new Ext.data.Connection({
listeners: {
beforerequest: function(){preloader.show();},
requestcomplete: function(){preloader.hide();}
}
});