Daniel Barreto 54aa741e8c Add jquery plugin jscroll for scroll ajax pagination - refs BT#5637 | преди 10 години | |
---|---|---|
.. | ||
.gitignore | преди 10 години | |
README.md | преди 10 години | |
jquery.jscroll.js | преди 10 години | |
jquery.jscroll.min.js | преди 10 години | |
jscroll.jquery.json | преди 10 години |
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.