-
21 Jan 2013 12:02 PM #1
change ajax proxy url dynamically
change ajax proxy url dynamically
Hello, plz how can i change the url of an ajax proxy after a buttton click and refresh the list data. Thx

-
22 Jan 2013 5:01 AM #2
You first have to get the list store, so if you know its name:
otherwise if you have the list component instance:Code:var store = Ext.getStore('NAME');
Then you have to get the proxy and change its url:Code:var store = list.getStore();
Finally reload the store:Code:store.getProxy().setUrl('NEW_URL');
Code:store.load();
Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata


Reply With Quote