Unanswered: how to make Synchronus loading of store after setting of extraParams
Unanswered: how to make Synchronus loading of store after setting of extraParams
Hi All,
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')[0].getValue();
console.log(txt);
var pwd = Ext.ComponentQuery.query('#pwd')[0].getValue();
console.log(pwd);
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.