Skip to content

Instantly share code, notes, and snippets.

@fables-tales
Created November 27, 2012 16:11
Show Gist options
  • Save fables-tales/4155134 to your computer and use it in GitHub Desktop.
Save fables-tales/4155134 to your computer and use it in GitHub Desktop.
console.log(obj["userids"]);
for (var i = 0; i < obj["userids"].length; i++) {
var userid = obj["userids"][i];
$.get("user/" + userid, {"token":token}, function(resp) {
var user_name = JSON.parse(resp)["full_name"];
console.log(userid);
build += "<li><a class='user' id='user-" + userid + "' href='#show-" + userid + "'>" + user_name + "</a></li>";
remaining -= 1;
if (remaining == 0) {
make_users_list(obj, build);
hide_spinner();
$("#login").hide();
$("#college").show();
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment