extjs: DWR Proxy









Ext.data.DWRProxy = function (f) {
Ext.data.DWRProxy.superclass.constructor.call(this);
this.func = f;
};

Ext.extend(Ext.data.DWRProxy, Ext.data.DataProxy, {
load : function(params, reader, loadCallback, scope, arg) {
var dataProxy = this;
dataProxy.fireEvent("beforeload", dataProxy, params);
var args = [];
for (var param in params) {
args[args.length] = params[param];
}
args[args.length] = {
callback: function(response) {
dataProxy.fireEvent("load", dataProxy, response, loadCallback);
var records = reader.read(response);
loadCallback.call(scope, records, arg, true);
},
exceptionHandler: function(message) {
dataProxy.fireEvent("loadexception", dataProxy, response, loadCallback, e);
loadCallback.call(scope, null, arg, false);
}
};

this.func.apply(this, args);
}
});


Original post: http://extjs.com/forum/showthread.php?t=19529


1 comment:

  1. Hello, How do I get in touch with you? There is no email or contact info listed .. please advise .. thanks .. Mary. Please contact me maryregency at gmail dot com

    ReplyDelete