I am using this Infinite-Scroll JQuery plugin, And I am having problems with requesting the like button status for the next posts, As mentioned In Tumblr docs, I need to use Tumblr.LikeButton.get_status_by_page(n)
or Tumblr.LikeButton.get_status_by_post_ids([n,n,n])
, I've tried the solutions here, here and here. And nothing works.
This is the code, I need to call Tumblr.LikeButton.get_status_by_post_ids([n,n,n])
after the ajax return the ajax recall.
And this is the important part:
$.infinitescroll = {
defaults : {
debug : false,
preload : false,
nextSelector : "div.navigation a:first",
loadingImg : "http://www.infinite-scroll.com/loading.gif",
loadingText : "<em>Loading the next set of posts...</em>",
donetext : "<em>Congratulations, you've reached the end of the internet.</em>",
navSelector : "div.navigation",
contentSelector : null, // not really a selector. :) it's whatever the method was called on..
extraScrollPx : 150,
itemSelector : "div.post",
animate : false,
localMode : false,
bufferPx : 40,
errorCallback : function(){}
},
loadingImg : undefined,
loadingMsg : undefined,
container : undefined,
currPage : 1,
currDOMChunk : null, // defined in setup()'s load()
isDuringAjax : false,
isInvalidPage : false,
isDone : false // for when it goes all the way through the archive.
};