Can anyone help me to call function synchronously using sencha touch. Function should complete all the statement it contains.
How to call function synchronously
3943
30-Oct-2014
Hi Developers,
Updated on 30-Oct-2014
Sumit Kesarwani
30-Oct-2014Ext.Ajax.request({
url: 'your page',
method: 'POST',
success: success,
failure: failure,
scope: this,
params: {foo: 'bar'},
async: false
});
// or directly ...
Ext.lib.Ajax.request('POST', url, callback, params, {async: false});