PDA

View Full Version : Ext-Direct "proxy.on is not a function"



Werzi2001
24 Apr 2012, 1:32 AM
Hi,

i have some problems using Ext.Direct requests. Sometimes i get the following error "proxy.on is not a function".

I did some research and this is the result:
In the method "queueTransaction" the buffer is disabled and "combineAndSend" is called directly. In "combineAndSend" the callBuffer-Array contains 2 entries (in "queueTransaction" already contains one entry... don't know why... seems to happen sometimes) and so the "sendRequest" method is called with the Array and not a single element. In "sendRequest" the proxy is set to "data.args[2]" which doesn't work if "sendRequest" is called with an array.

I am sorry but i didn't manage to create a simple test case which triggers the error but maybe my research helps you to understand the problem. I think that this could be an error in ExtJS as the "sendRequest" method is not able to work when called with an array but it gets called with an array.

Yours
Thomas

Edit:
Sorry my fault. This is custom code from the project i am working on :(

scottmartin
25 Apr 2012, 9:46 AM
Sorry my fault. This is custom code from the project i am working on

Thank you for the update.

Regards,
Scott