ThorstenSuckow
10 Jul 2009, 5:22 AM
Can someone please tell me where a connection object gets instantiated when I configure Ext.data.Store to use with Ext.data.DirectProxy?
Here's my store config:
var store = new Ext.data.Store({
proxy : new Ext.data.DirectProxy({
api : {
read : '/someurl',
create: '/someurl',
delete : '/someurl',
update : '/someurl'
}
})
})
When I call "store.load()", it tries to to call "this.proxy.request(...)" but triggers an error, due to
var directFn = this.api[action] || this.directFn;
...
directFn.apply(window, args);
in DirectProxy.js' doRequest method - directFn holds an object with the api urls but thats about it, there is no connection object.
What am I missing/doing wrong here?
Here's my store config:
var store = new Ext.data.Store({
proxy : new Ext.data.DirectProxy({
api : {
read : '/someurl',
create: '/someurl',
delete : '/someurl',
update : '/someurl'
}
})
})
When I call "store.load()", it tries to to call "this.proxy.request(...)" but triggers an error, due to
var directFn = this.api[action] || this.directFn;
...
directFn.apply(window, args);
in DirectProxy.js' doRequest method - directFn holds an object with the api urls but thats about it, there is no connection object.
What am I missing/doing wrong here?