1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    21
    Vote Rating
    1
    brian.scott@talgov.com is an unknown quantity at this point

      0  

    Default Ajax Proxy and Extra Parameters - Collecting User Input

    Ajax Proxy and Extra Parameters - Collecting User Input


    Hello friends -

    Let's say I would like to collect a value that a user enters into a text box, and send that value as an extra parameter at json call time?

    i.e., this code inside my extraParams component works fine:

    {"userName": 'scottb'}

    But I really need to put:

    {"userName": #whateverTheUserTyped#}

    Can someone give me a little guidance on how to get there?

    Thanks!

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,352
    Vote Rating
    127
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    something along the lines of....

    Code:
    var myTxtField = this.getComponent('theItemId');
    var myStore = Ext.StoreManager.lookup('myStoreId');
    
    myStore.load({
       params: {
          userName: myTxtField.getValue()
       }
    });
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    21
    Vote Rating
    1
    brian.scott@talgov.com is an unknown quantity at this point

      0  

    Default


    Thanks aconran. I eventually got something similar figured out.

Thread Participants: 1

Tags for this Thread