Ext


Go Back   Ext JS Forums > Ext JS Premium Forums > Ext: Feature Requests

Reply
 
Thread Tools
  #1  
Old 11-02-2009, 08:00 AM
MindPatterns's Avatar
MindPatterns MindPatterns is offline
Ext JS Premium Member
 
Join Date: Sep 2007
Location: Aachen, Germany
Posts: 519
MindPatterns is on a distinguished road
Send a message via ICQ to MindPatterns Send a message via Skype™ to MindPatterns
Default [3.0.3] RemotingProvider - return requestId in "doSend"

In some cases, it would be useful to have the current requestId returned by the "doSend()" method in RemotingProvider:
    
doSend : function(data){
        var o = {
            url: this.url,
            callback: this.onData,
            scope: this,
            ts: data,
            timeout: this.timeout
        }, callData;

        if(Ext.isArray(data)){
            callData = [];
            for(var i = 0, len = data.length; i < len; i++){
                callData.push(this.getCallData(data[i]));
            }
        }else{
            callData = this.getCallData(data);
        }

        if(this.enableUrlEncode){
            var params = {};
            params[Ext.isString(this.enableUrlEncode) ? this.enableUrlEncode : 'data'] = Ext.encode(callData);
            o.params = params;
        }else{
            o.jsonData = callData;
        }
        return Ext.Ajax.request(o);
    },
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 05:27 PM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.