Dec 28, 2010, 8:04 PM
[CLOSED] How can I set scope in Success function when calling DirectMethod?
I am using a DirectMethod to hit a httphandler and return HTML that I inject into the page. How can I set the scope of the success function?
getDrillDownMap:function() {
this.getEl().dom.useMap ='#' + this.imageMapID;
Ext.net.DirectMethod.request({
url: this.imageUrl,
cleanRequest: true,
success: function(result, options) {
var newMap = Ext.DomHelper.insertHtml('afterEnd', this.getEl().dom, result.html);
},
failure: function(result) {
debugger;
},
scope:this
});
}
In the above code, this inside getDrillDownMap refers to an image object. I want to pass that image object as the scope of the success function.
Last edited by Daniil; Dec 31, 2010 at 6:17 PM.
Reason: [CLOSED]