I use jscrollas an endless scroll player.
$j('.frontpage').jscroll({
loadingHtml: '<div style="text-align: center;"><img width="50" src="ring-alt-1.gif" alt="Loading" /></div>',
padding: 20,
nextSelector: 'div.next a',
contentSelector: '.latest-container',
autoTrigger: true,
autoTriggerUntil: 1
});
This is a pretty neat plugin, and it uses a must for my project autoTriggerUntil. Using this method, you can limit the time during which the content is downloaded automatically and display the "Next" button on the page.
I am trying to achieve this.
- Download the first set of messages (actually 2nd page) with infinite. (DONE)
- After the 2nd page, display the "Download All" button. (DONE)
- Both 1 and 2 work, but I'm trying to do this: after clicking "Download All" on page 2, I want to destroy the limiter and return to the endless view to the end.
- . - .