Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Infinite scroll + filter pagination

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #208452
    treeves93
    Participant

    Hi all,

    I have a script that generates items server-side, which I’m trying to filter client-side. The default count is around 12 items, and when I load more items, the filter isn’t applied and it loads unfiltered items.

    In my eyes I can do this two ways: load all of the items client-side and filter them down that way (which would be data-heavy), or configure the infinite scroll to only select items that match the ID of the filter.

    I’ve spent days trying to find out how to do this, much to no avail.

    Has anyone experienced anything like this with infinite scroll? I’ve seen quite a lot of arguments against combining infinite scroll with filtering, and I’m starting to see why.

    Thanks in advance for any input, it’s appreciated greatly.

    #208666
    Mottie
    Member

    Have you looked at this infinite scroll plugin?

    Maybe you can load in all the item data (urls or whatever) using ajax, then filter and process that information before retrieving the the data-heavy information from the server.

    It would be easier to help if you provided some code, or a better idea of what kind of data is being processed.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.