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,168
    Vote Rating
    119
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."