Q:

Problems making GET request from jQuery

I'm trying to make an HTTP GET request using the jQuery get() function, but I'm having some trouble. 
Here's what my code looks like: 
// get the links on the page
var pageLinks = $.find('#pageLinks');
// loop through each of the links
$(pageLinks).find('a').each(function(){
   if($(this).attr('title') !== "Next Page"){
       // make a GET request to the URL of this link
   $.get($(this).attr("href"), function(data) {
           console.log("here");
           var temp = parse_page(data);
           // concatenate the return string with another
           bdy = bdy+String(temp);
           console.log("done");
       });
   }
});

There are multiple pages that I need to get data from. Since the get() function is asynchronous, I get the pages in a random order. Secondly, the concatenation does not work. Even though I get each of the pages, they're not put into bdy. 
Can anyone suggest how I might deal with this? 
Thanks a lot!!

A:

I just found that there are modules that allow one to manage the control flow in JS. The ones I found are:

Async
Step

For help using the above modules, see my follow up question here.

