Results 1 to 6 of 6
Thread: AJAX Call one after anohter
May 23, 2010, 12:53 #1
- Join Date
- Nov 2005
- Karachi - Pakistan
- 0 Post(s)
- 0 Thread(s)
AJAX Call one after anohter
I have a situation, where some records will be searched from a database, and then is the process button is clicked, an ajax process will initiate that will process the first row, when the first row is done, then it will automatically initiate the ajax process for row 2 and so on.
I want to know what is the best way to do this ?
What i have in my mind is that, passing all the rows id in via ajax to the script and then script process and return the next id, and on the reply, if there is an id, then another ajax will initiate the process with this id, and then so on.
here are the ids, 2,3,4,5,7,8,9
i will sent this to the php script like this
and so on,
Is this correct approach ?