PDA

View Full Version : fire event to application in request success event



linuxyf
29 Nov 2011, 6:04 PM
Ext.Ajax.request({
url: upUrl,
method: "PUT",
jsonData: data,

// update zan success
success: function(response, opts){
this.application.fireEvent('zanValueUpdated'); here how to fire a event to application???
},

linuxyf
29 Nov 2011, 6:36 PM
solved, add scope: this