PDA

View Full Version : Why when I migrated from ExtJS 2.2 to 3.x my httpProxy works diffrent?



pawel_filip
6 May 2009, 2:27 AM
Why when I migrated from ExtJS 2.2 to 3.x my httpProxy works with GET method when load data. In ExtJS works with POST method.
What i must change in my code ?


App.koszykStore = new Ext.data.GroupingStore({
autoLoad: true,
proxy: new Ext.data.HttpProxy({
url: 'app/koszyk.php',
useAjax:true,
method:'POST'
}),
baseParams: {
task: "get_koszyk"
},
groupField:'dokument',
reader: new xd.JsonReader({
root: 'data',
totalProperty: 'total',
id: 'id',
},[
{name: 'dokument', type: 'string'},
.....
]),
remoteSort:true,
sortInfo:{field: 'id', direction: "ASC"}
});

6 May 2009, 2:47 AM
I think it's a known bug with RC1

Condor
6 May 2009, 3:08 AM
This seems to be already fixed, since I can't reproduce it with the current Ext 3 SVN build.

ps. You should NOT put useAjax:true in the HttpProxy config options (it's automatically set to true, because you didn't supply an Ext.data.Connection instance).

heidtmare
6 May 2009, 8:07 AM
is there a patch i can apply to fix this error for in the rc?

6 May 2009, 8:14 AM
I say wait for the Rc2 or RC1.2

juanramoney
6 May 2009, 12:27 PM
is there a patch i can apply to fix this error for in the rc?

The code fix from the SVN in this thread was useful for me, maybe can help you too:

http://www.extjs.com/forum/showthread.php?t=67680

pawel_filip
7 May 2009, 3:43 AM
Ok, I'm waiting for RC2
Thx