PDA

View Full Version : Need two or more Ajax requests???



finderetf
13 Nov 2009, 9:06 AM
function1 - ajax request
function2 - ajax request
function3 - ajax request (callback: do something);

But sometimes, function1 or function2 does not finish their loading from database into data store. How to resolve this problem???

I don't want to do function1:callback(function2),function2:callback(function3)...

Thanks!!!

jay@moduscreate.com
13 Nov 2009, 9:08 AM
setup one store to load another to load another via "load" events.

finderetf
13 Nov 2009, 9:13 AM
I have told already, I don't want to do that, I had had the same idea. How to make them to do synchronously one by one.

Thanks jgarcia@tdg-i.com!

jay@moduscreate.com
13 Nov 2009, 9:16 AM
Setting up an event chain will FORCE the requests to be made synchronously.

mschwartz
13 Nov 2009, 10:10 AM
serially.