Results 1 to 3 of 3

Thread: HttpProxy and Params

  1. #1

    Default HttpProxy and Params

    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...icle&type=list

    i want use a params in httpproxy

    My Javascript code:

    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?

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    It's the Store that has baseParams, not the Proxy. As it says in the docs.

  3. #3

    Default

    Thanks a lot

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •