PDA

View Full Version : HttpProxy and Params



pho3nix_
3 Apr 2008, 4:54 AM
Hi People,

I have a problem with my code, i trying get xml data from a url using .aspx and querystring but i don't want pass all items like

http://localhost/datastore/data.aspx?table=article&type=list

i want use a params in httpproxy

My Javascript code:



myDataStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: strServername + '/DataStore/Data.aspx',
baseParams: {
'Table': 'Article',
'Type': 'List'
},
method: 'GET'
}),
reader: new Ext.data.XmlReader ({record: 'CmsArticle'}, columns)}
);



And i server side i use a Request.QueryString("Table") to get a value Article but my querystring is type of Nothing

How to resolve this?

Animal
3 Apr 2008, 5:00 AM
It's the Store that has baseParams, not the Proxy. As it says in the docs.

pho3nix_
3 Apr 2008, 5:24 AM
Thanks a lot

I readed documentation but i a newbie in extjs and trying learn this great tool.