javascript - Ext.Direct: matching return values to calls -


I ext. I am making a sequence of Ajax calls using the Direct Module. When I make every call, then save some data, and then match each call with the correct call.

In the server call, Ext uses the mail return value to call a tid property (potential "transaction identifier"). The problem is that the documented method does not seem to capture outgoing calls for my client-side javascript to tid .

The following method works, but it uses undocumented Ext.Direct.TID property assuming that my.namespace.my_action.my_method Is an Ext.Direct API call that is properly configured:

  // Set a global object, in which the pending call to the store is pending data = {} ; . . . // Call the server-side routine, and send the data to my.namespace.my_action.my_method (call_data) queue; Pending call [Ext.Direct.TID] = call_data; . . . // Handout of function of "data" event of Ext.direct.Provider = data (provider, data) {if data.type == "rpc" {// original call_data call_data = retrieve pending calls [data.tid]; // call_data and do something with data.result}}  

Ex me. Do not like to use the Direct Class Private Internal. Is there an official way to do this, using the public interface of Ext.Direct?

The question that I have posted, the question works, even if its undocumented and since someone does this I have not posted another method, I will be with it.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -