PDA

View Full Version : Datastores is it url or is it proxy?



Elijah
8 Mar 2010, 9:52 AM
Not sure how I got the first part before but now I am unclear on this.
for a datastore, which one is correct?


dsLocations = new Ext.data.Store({
url: 'API.jsp?api=test03',

or is it

dsLocations = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url: 'API.jsp?api=test03'}),

Can both of them be used or is there a favored one over the other?
When do you use one over the other?

8 Mar 2010, 12:14 PM
Just use one of the subclasses of data.Store and conifgure a URL.

the only time you *need* to configure a proxy is if you're going to use the script tag proxy.

WBX
19 Jan 2011, 3:51 PM
Just use one of the subclasses of data.Store and conifgure a URL.

the only time you *need* to configure a proxy is if you're going to use the script tag proxy.

Or if you need to set headers etc.