Pipelining (lazy loading) data with javascript arrays as data source

Pipelining (lazy loading) data with javascript arrays as data source

dre85dre85 Posts: 2Questions: 1Answers: 0

I would like to know if it is possible to provide Datatables a JS object that defines the pagination properties? Something like "show 1 of 10 pages and 300 total entries" while only providing it actual data for the first page. Ideally I would then hook into the "next page" event and provide it with more data in the form of javascript arrays.

Thanks!

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    edited October 2014

    Not an object, but you can provide a string to give that information - language.info in this case. Example: http://live.datatables.net/dujiqaje/1/edit

    Edit - the tokens on the language.info page are based escaped - they shouldn't have a \! I'll fix soon.

    Allan

  • dre85dre85 Posts: 2Questions: 1Answers: 0

    Thanks for the help Allan! It turns out that I was looking for the server-side processing feature with ajax set as a custom function. This resolved the issues I was having.

This discussion has been closed.