简体   繁体   中英

Scroll pagination (search system), Jquery. Javascript

Does anyone know any scroll pagination system with data search system? I tried to adapt the scrollpagination.js but I didn't get. a tutorial or something that could help me? Example .. Upon entering the site, the pagination would run normal but when someone does a search, it would make the paging according to the data entered. I would like some tutorial on how to do this in jQuery or some plugin Thanks and sorry my english XD

I have done this in the past by setting up the API to accept the page-number and the results-per-page as parameters, then using jQuery i do an

$.get('url?page=2&resultsPerPage=10', function(data){ appendResults(data) });

I trigger this on scroll when it reaches the bottom.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM