The current page itself isn't stored in a variable, but you can work it out quite readily from the information in the settings object (fnSettings):
[code]
iCurrentPage = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
[/code]
This is how I calculate it in the pagination functions built into DataTables.
Replies
The current page itself isn't stored in a variable, but you can work it out quite readily from the information in the settings object (fnSettings):
[code]
iCurrentPage = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
[/code]
This is how I calculate it in the pagination functions built into DataTables.
Regards,
Allan
Please help me to get the current page, in the php variable.
Please....