Server Side Processing + Getting Page Number
Server Side Processing + Getting Page Number
Anusha
Posts: 5Questions: 2Answers: 0
Hi,
I would like to do something like the following:
$('#example').dataTable( {
"processing": true,
"serverSide": true,
"ajax": {
" url": "GetMoreRows.java",
"data": {pgno: table.page.info().page} //This will send Ajax request with page number
}
} );
So basically everytime I click the next button, I want to send an AJAX request with custom http parameter as page number.
In all the examples I have seen so far "page.info()" seems to be used only outside of the $.dataTable() function, and it doesn't work inside of the $.dataTable() function. Is there a way to do this?
Thanks,
Anusha
This discussion has been closed.
Answers
Edit:
"data": {pgno: page.info().page}
Any help would be useful. If I might mention, I am just starting out with jQuery, and I don't understand too much of it... I'm digging up more information, though. If anyone could maybe point me to some blog post regarding the same, or give some pointers to answer my doubt, that would be fine too.