jquery Infinite Scroll page number

Posted by Renan Vieira on Stack Overflow See other posts from Stack Overflow or by Renan Vieira
Published on 2012-10-17T04:49:26Z Indexed on 2012/10/17 5:00 UTC
Read the original article Hit count: 410

Filed under:
|
|

I'm using a jQuery plugin called InfiniteScroll (https://github.com/paulirish/infinite-scroll) and I have a URL with this pattern: '/category/2/', when I paged the result I use the following pattern: "/category/2?page=2".

When Infinite Scroll makes de request, he increments the wrong number, in the case above, the request is: "/category/3?page=2" in place of "/category/2?page=3".

Anyone knows how workaround this?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ASP.NET