rsuplido
28 Jun 2007, 6:26 AM
We have been having problems doing asynchronous loads of data stores. If we do this:
stateDs.load();
typeDS.load();
statusDs.load();
where, each data store requests a page with data in json format, only the third data store will com back with data. Firebug shows the two other page requests as 'Loading..' and will never come back.
If we force it to do synchronous processing with the following code, everthing works fine:
typeDS.load({callback: function () {
statusDs.load({callback: function () {
statusDs.load();
}
});
}
});
Anyone know what's causing this and if there's a workaround to call multiple store.load() asyncrhonously?
Thanks.
Ext version is v1.1 beta 1.
stateDs.load();
typeDS.load();
statusDs.load();
where, each data store requests a page with data in json format, only the third data store will com back with data. Firebug shows the two other page requests as 'Loading..' and will never come back.
If we force it to do synchronous processing with the following code, everthing works fine:
typeDS.load({callback: function () {
statusDs.load({callback: function () {
statusDs.load();
}
});
}
});
Anyone know what's causing this and if there's a workaround to call multiple store.load() asyncrhonously?
Thanks.
Ext version is v1.1 beta 1.