AJAX Sequence Question
Posted on 2009-07-01
I would like to do the following and require expert's help on how to do so:
For each URI in the list
Call a Server's Web Service (WS) One & retrieve the data
Send the data to another Server to perform some operations
Question1: Since it is all going to be in JS, is xmlHttpRequest the only good solution to call an URI?
Question2: Is AJAX a good approach to solve the above problem? Are there better solutions?
Reason I am hesitant with AJAX is that is aynchronous in nature - meaning it might not fit well to do actions in a sequence. Though one could use successHandler to build this sequence, I am not sure if overall approach is an elegant solution. Moreover, the above problem is very simple - to perform actions in a sequence in a complex problem gets trickier.
Any other suggestions on how to solve similar kind of problems, i.e. doing actions in a sequence with remote URI calls to get data.