Skip to content

Instantly share code, notes, and snippets.

@optikalefx
Created July 6, 2012 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save optikalefx/3058323 to your computer and use it in GitHub Desktop.
Save optikalefx/3058323 to your computer and use it in GitHub Desktop.
$.post("npr/get/41",function(res) {
// loop and place
for(i=0;i<res.length;i++) {
// remove one of the loading boxes
$(".news-row:eq(2) .news-inner-row .loading:first").remove();
// add a good article
$(".news-row:eq(2) .news-inner-row").append(
render(template)(res[i])
);
}
},"json");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment