GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - stuartm/jscroll: jScroll Infinite Scrolling Plugin for jQuery

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
jquery.jscroll.js
jquery.jscroll.js
 
 
jquery.jscroll.min.js
jquery.jscroll.min.js
 
 
jscroll.jquery.json
jscroll.jquery.json
 
 

Repository files navigation

jScroll jQuery Plugin for Infinite Scrolling / Auto-Paging

Official site at jscroll.com.

  • Copyright (C) 2011-2013, Philip Klauzinski
  • Current Version: 2.2.4
  • Dual licensed under the MIT and GPL Version 2 licenses.
  • http://jscroll.com/#license
  • http://www.opensource.org/licenses/mit-license.php
  • http://www.gnu.org/licenses/gpl-2.0.html

Requires jQuery v1.4.3+

Facebook Page

Follow us on Facebook for commit updates: http://www.facebook.com/jScroll.Infinite.Scrolling

Usage

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'
});

Options

  • debug (false) When set to true, outputs useful information to the console display if the console object exists.
  • autoTrigger (true) When set to true, triggers the loading of the next set of content automatically when the user scrolls to the bottom of the containing element. When set to false, the required next link will trigger the loading of the next set of content when clicked.
  • autoTriggerUntil (false) Set to an integer great than 0 to turn off autoTrigger of paging after the specified number of pages. Requires autoTrigger to be true.
  • loadingHtml ('<small>Loading...</small>') The HTML to show at the bottom of the content while loading the next set.
  • padding (0) The distance from the bottom of the scrollable content at which to trigger the loading of the next set of content. This only applies when autoTrigger is set to true.
  • nextSelector ('a:last') The selector to use for finding the link which contains the href pointing to the next set of content. If this selector is not found, or if it does not contain a href attribute, jScroll will self-destroy and unbind from the element upon which it was called.
  • contentSelector ('') A convenience selector for loading only part of the content in the response for the next set of content. This selector will be ignored if left blank and will apply the entire response to the DOM.
  • pagingSelector ('') Optionally define a selector for your paging controls so that they will be hidden, instead of just hiding the next page link.
  • callback () Optionally define a callback function to be called after a set of content has been loaded.

For more information on the contentSelector option and how it loads a response fragment, see the jQuery documentation for the .load() method.

LICENSES:

  • MIT: http://www.opensource.org/licenses/mit-license.php
  • GPL-2.0: http://www.gnu.org/licenses/gpl-2.0.html

About

jScroll Infinite Scrolling Plugin for jQuery

jscroll.com/

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.