-
23 Jan 2013 6:46 AM #1
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!
-
23 Jan 2013 11:28 AM #2
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
-
24 Jan 2013 11:19 AM #3
Thanks aconran. I eventually got something similar figured out.


Reply With Quote