2 Aug 2012 9:23 PM #1
Unanswered: how to make Synchronus loading of store after setting of extraParams
My problem is that there is not Synchronus loading of store taking place after the setting of extraParams ,
but in my code store is loading Asynchronusly due to which I am getting outdated result instead of updated result. I want to know that is there is any function of store which can load store Synchronusly in Sencha Touch 2 ?
Below is my Controller:
onSubmitButton: function(btn, evt)
var txt = Ext.ComponentQuery.query('#txt').getValue();
var pwd = Ext.ComponentQuery.query('#pwd').getValue();
var jobsStore = Ext.getStore('Login');
jobsStore.load(); // here i want something which can load the store Synchronusly not Asynchronusly
console.log("The return value is="+nm);
Ext.Msg.alert("Login in Successful");
Ext.Msg.alert("Enter the correct User Name and password");
Please reply me..............
4 Aug 2012 7:30 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I would 100% stay away from a sync ajax request. The reason is your whole app will absolutely freeze, nothing will work while that request is being sent and received. It is much better to use the events or callback in an async request.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.