Scroller: is it possible to bind the scrolling plugin to the browser's scroller?

Scroller: is it possible to bind the scrolling plugin to the browser's scroller?

RPokrovskijRPokrovskij Posts: 8Questions: 2Answers: 0

I want to provide auto load data on browser's scroller (like Facebook provide).
Is it possible to do it with standard jquery DataTables features?

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Hi @RPokrovskij ,

    I'm not following, but would this blog post here help? If not, please can you provide more information.

    Cheers,

    Colin

  • RPokrovskijRPokrovskij Posts: 8Questions: 2Answers: 0

    In this sample dataTables_scrollBody div is scrollable ("overflow: auto; height: some") when I want that "new portion" of data would be loaded on browser's window scrolling down.

    What is a problem with "scrollable div's" - you can easy scroll it to the "bottom" and usually this means requesting huge amount of data and not necessary activity. When "browsers scrolling" gives to the scrolling "show one more page" semantics.

    So is it possible append data to jquery datatable on browser's scrolling (like Facebook do)?

    "Show more" button that appends one more "page" is also OK.

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Ah, I think I see, have you looked at Scroller. This example here sounds like it should do the trick,

    Cheers,

    Colin

This discussion has been closed.