Telligent Community
Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Telligent Community 10.x
  • Verint Community
  • More
Telligent Community 10.x
API Documentation scrolltop jQuery Event
  • Ask the Community
  • User Documentation
  • API Documentation
  • Manager Training
  • Developer Training
  • Tags
  • More
  • Cancel
  • New
  • API Documentation
  • +In-Process API Documentation
  • +Plugin API Documentation
  • +REST API Documentation
  • -Widget API Documentation
    • -JavaScript API Documentation
      • +Client Messages
      • +Composer Plugins
      • +JavaScript API Modules
      • -jQuery Events
        • doubletap jQuery Event
        • evolutionCodeEditorChange jQuery Event
        • evolutionCodeEditorReady jQuery Event
        • glowDelayedMouseEnter jQuery Event
        • glowDelayedMouseLeave jQuery Event
        • hashchange jQuery Event
        • mutate jQuery Event
        • orientationchange jQuery Event
        • pan jQuery Event
        • panend jQuery Event
        • panstart jQuery Event
        • pointerend jQuery Event
        • pointermove jQuery Event
        • pointerstart jQuery Event
        • quote jQuery Event
        • rendered jQuery Event
        • resized jQuery Event
        • scrollend jQuery Event
        • scrolltop jQuery Event
        • swipe jQuery Event
        • swipedown jQuery Event
        • swipeleft jQuery Event
        • swiperight jQuery Event
        • swipeup jQuery Event
        • tap jQuery Event
        • taphold jQuery Event
        • wake jQuery Event
      • +jQuery Plugins
      • +UI Components
    • +Widget Associated Types
    • +Widget Extensions

scrolltop jQuery Event


jQuery.event.special.scrolltop

The scrolltop event is raised when scrolling near the top of the window or scrollable container element.

This is commonly useful for enabling endless scrolling interfaces.

Usage

// handle the 'scrolltop' event on an entire document
$(document).on('scrolltop', function() {
    // handle event
});

// handle the 'scrolltop' event of a vertically-overflowing div
$('#SomeOverflowingDiv').on('scrollend', function() {
    // handle event
});

// handle the 'scrolltop' event on an entire document with custom parameters
$(document).on('scrolltop', {
    padding: 150,  // distance from the top at which 'scrolltop' is raised
    delay: 250    // frequency to check scroll position during a scroll
}, function() {
    // handle event
});

Tip: When performing an asynchronous request on a scrolltop or scrollend event, a flag should be set to block subsequent requests until the current request is complete.


  • Share
  • History
  • More
  • Cancel
Related
Recommended
  • Telligent
  • Professional Services
  • Submit a Support Ticket
  • Become a Partner
  • Request a Demo
  • Contact Us

About
Privacy Policy
Terms of use
Copyright 2021 Verint, Inc.
Powered by Verint Community