Infinite Scrolling with Server Side Processing using POST

Infinite Scrolling with Server Side Processing using POST

JerAndersonJerAnderson Posts: 3Questions: 0Answers: 0
edited November 2010 in General
I really like the the infinite scrolling option (http://datatables.net/examples/api/infinite_scroll.html), but I'm a little confused as to how to implement it when I'm getting data from the server using POST. The example shows to add a start and length parameter to the server side processing URL, and that makes sense. Using POST, I'm guessing I'd just need to call fnServerData from the setup of the DataTable - but that function expects three parameters, sSource, aoData, and fnCallback. aoData looks like the object with all my search, sorting, paging, and other parameters included, but I'm not sure where to get it from. Has anyone tried this before?

Replies

  • JerAndersonJerAnderson Posts: 3Questions: 0Answers: 0
    Any chance someone could put together an example of how to do server side infinite scrolling using the POST method? POST makes it so much easier to pass in all the sorting, filtering and other parameters. I've been unable to figure out how to put all that data back together without re-engineering the fnServerData function.
This discussion has been closed.