Reading List
Quick Tip: Use jQuery to Complete an Arbitrary Number of AJAX Calls Before Firing an Event from Blogs on Monica Lent's Website RSS feed.
Quick Tip: Use jQuery to Complete an Arbitrary Number of AJAX Calls Before Firing an Event
Somewhat recently, I encountered an issue where my expected user input is an arbitrarily long list of words. While I could get the word count, I had no reliable way to know whether all of the ajax requests had been completed before firing an event that created a list of definitions for each word. I had several realizations in my quest:
I could do the entire process synchronously. However, this meant that one bad ajax return or error could cause the entire process to hang.