Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35367

"static" Pagination

$
0
0

Hi everyone,

my DataTables data is coming from the Perl-script itself (which generates the html page), and it does pagination by default (with ?page=xx parameter) to reduce database load. The data is already in the DOM.

How can I initialize DataTables with:
- giving it the amount of total records
- adding the page parameter to the pagination so that click the page-link just loads the same page with another page parameter?

EDIT: I found https://datatables.net/examples/server_side/custom_vars.html, but this is not useable because the data is already in the DOM.

I guess that the search feature (over all data) will break at this point, but I don't care about that really much.

Many thanks!


Viewing all articles
Browse latest Browse all 35367

Trending Articles