Created
July 6, 2012 05:58
-
-
Save optikalefx/3058323 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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