Daniel Barreto 54aa741e8c Add jquery plugin jscroll for scroll ajax pagination - refs BT#5637 | před 10 roky | |
---|---|---|
.. | ||
.gitignore | před 10 roky | |
README.md | před 10 roky | |
jquery.jscroll.js | před 10 roky | |
jquery.jscroll.min.js | před 10 roky | |
jscroll.jquery.json | před 10 roky |
Official site at jscroll.com.
Requires jQuery v1.4.3+
Follow us on Facebook for commit updates: http://www.facebook.com/jScroll.Infinite.Scrolling
The jscroll
method is called on the selector for which you want your scrollable content contained within. For example:
$('.jscroll').jscroll();
The jscroll
method takes an optional object literal as a parameter for overriding the default options. An example of how this can be done is shown below.
$('.jscroll').jscroll({
loadingHtml: '<img src="loading.gif" alt="Loading" /> Loading...',
padding: 20,
nextSelector: 'a.jscroll-next:last',
contentSelector: 'li'
});
console
object exists.autoTrigger
of paging after the specified number of pages. Requires autoTrigger
to be true
.'<small>Loading...</small>'
) The HTML to show at the bottom of the content while loading the next set.For more information on the contentSelector option and how it loads a response fragment, see the jQuery documentation for the .load() method.