stopping infinite scroll

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 7, 2016   (RSS)

By squeazel - June 6, 2016

I'm loading records using the infinite scroll jquery plugin. It automatically increments the page= at the end of the URL until it gets a 404. However, cms builder returns the last available page of records not matter how high the page number is. As a result, the last set of records loads over and over. Is there any way to force a 404 instead? Or, has anyone come up with another workaround?  thanks, Jason

By squeazel - June 7, 2016

Thanks Damon! I wrapped my entire code displaying the CMS records inside your code, but changed it to >= instead of <, and it worked.