Thank you, Michael. Of course, the display loop has to be nested
inside the inner getJSON.

$.getJSON(friendsURL, function(friends){

  $.getJSON(repliesURL, function(replies){
    friends = $.merge(friends, replies);

    $.each(friends, function(item){
      // Display the item.
    }); // each

  }); // getJSON replies

}); // getJSON friends

Once I got that straightened out, I realized I have to use $.merge
instead of $.extend because the Twitter object is an array, and
$.extend just replaces the items with the same index.

Now it's on to sorting.

-- 
Dr. Drang

Reply via email to