Return to Snippet

Revision: 32394
at September 23, 2010 13:08 by tessat


Initial Code
//Presumes your posts code is inside a div "#posts" and ".page" inside this. 

$(document).ready(function() {
   var totalPages = $("#hidden_navinfo .totalpages").text();
   for ( var i = 1, len = totalPages; i < len; i++) {
		var count = i+1;
		var new_posts = "";
		$.get("/page/" + count, function(data) {
		 	$("#posts").append($('.page', $(data)));
		});

	}
});


// This needs to go in the the page div 
<div id="hidden_navinfo"><span class="totalpages">{TotalPages}</span></div>

Initial URL


Initial Description
Very rudimentary script for loading all posts on a tumblr blog at the same time. Needs a lot of work, just a concept really.

Initial Title
Tumblr - load all posts

Initial Tags


Initial Language
jQuery