Greetings dear readers, I would really appreciate your help solving my problem.
I have programmed a user interface to make CRUD-operations on a database (select, insert, delete, update). If the user edits more than one row - a "updateAll" button appears which fires all "singleUpdate" events. A singleUpdate event fires a Request.JSON call to a JSP servlet. The problem is, that when the "updateAll" button is clicked - all requests are made simultaneous and only the last one is successfull - so I want to wait till one request is made until I make another. I have attached a exampleCode in jsfiddle to make it clear. http://jsfiddle.net/tMhbd/9/ Thanks in advance for your help!