Paginate results from ajax call

Paginate results from ajax call

Hello, I'm currently working on a project (in codeigniter) where you have a table showing data from the database, and I have 3 selects, each select has the on change event, base on the id of each select I do an ajax call to filter the table information, I'm using the codeigniter pagination controller to paginate the results, all work ok but.

What if I do the ajax call and the result is 300 rows?, I would like to paginate those results too.

What I wanna do is, get all rows and paginate by n quantity of rows without change the url as codeigniter library does. any of you have one example?