I have ajax requests (multiple) coming to my servlet.
Each Request is created on the onBlur of the text box.
I have a total of 3 such text boxes.
I have a requirement that when the response of the firt result comes, then only should the next request be fired.
Please let me know if any one has worked on anything like this.
I am using Dojo/Digit on client side and simple java Servlet at the server side.
Thanks.
I have ajax requests (multiple) coming to my servlet. Each Request is created on
Share
You can do this with simple coding. If you need to send the second request only after the response of the first request, you will have to code for the second request in the success condition of your first request. Have a look at the code below:
I hope this helps