posted 16 years ago
good day,
i send an ajax request. before i get the response for that request, i make another request. i receive the response of the second, but not the first.
so to solve this problem, i have called the javascript function that contains the second ajax request, from the response of first request. by this way, we could avoid the second request being made, before the first response.
sequence of steps that created problem
1. ajaxrequest1 -------------->server
2. ajaxrequest2 -------------->server
3. ajaxresponse2 <-------------server
end
my solution
1. ajaxrequest1 -------------->server
2. ajaxresponse1(call javascript function that makes 2nd request) <-------------server
3. ajaxrequest2 -------------->server
4. ajaxresponse2 <-------------server
end
but this somehow, i think, limits ajax's power. is there any other solution.
have a great day,
krishna prasad g
have a great day,
krishna prasad