PDA

View Full Version : Data store load wants synchronous



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.

gmameli@cogito.expertsystem.it
28 Jun 2007, 6:35 AM
have same problem but only with Internet Explorer 6 (7 I have not try), in FireFox it works perfect...

I have some Ext.data.Store, and if I call the load method only the last is fired...


I think this problem is similar to the problem http://extjs.com/forum/showthread.php?t=8049&highlight=load+datastore

Unfortunatly until now no answer... :(

This problem drive me crazy... please help.

Thank

tryanDLS
28 Jun 2007, 7:12 AM
This has been covered numerous times - there is a bug in 1.1beta1 - search for autoabort.

matjaz
28 Jun 2007, 8:54 AM
http://extjs.com/forum/showthread.php?p=36868#post36507