Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aaron 20 posts 180 karma points
    May 11, 2018 @ 17:52
    Aaron
    0

    AJAX pagination with Umbraco... How to?

    Hi,

    I've spent far to long looking for an answer to this now.

    I have a working pagination which reloads the page, and appends ?page onto the url, however i would like to convert this over to use ajax for pagination.

    There seems to be no information on how to achieve this with Umbraco 7 anywhere, so a little help would be greatly appreciated.

    Thanks!

  • Garðar Þorsteinsson 118 posts 564 karma points
    May 11, 2018 @ 18:36
    Garðar Þorsteinsson
    0

    Hi Aaron,

    It would be great if you could tell us more about the data that your are trying to paginate.

  • Aaron 20 posts 180 karma points
    May 11, 2018 @ 21:26
    Aaron
    0

    I have an array of images which i am showing 5 per page currently.

    I have used the pagination available on this form to create a pagination.

    But because i'm using this for a gallery it doesn't work in the best user friendly way.

    I'm pretty new to AJAX and so i do not know where to start with converting this over, there is very little in terms of documentation and examples to see how to achieve this really simple idea

  • Amir Khan 1287 posts 2744 karma points
    May 11, 2018 @ 19:41
    Amir Khan
    0

    Hi Aaron, this isn't really related to Umbraco as much as AJAX but you can take a look at this infinite scroll plugin we use for our blogs, long lists etc: https://github.com/pklauzinski/jscroll

    Hope this helps,

    Amir

Please Sign in or register to post replies

Write your reply to:

Draft