≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
How to get the current page number?
How to get the current page number?
lee911
Posts: 4
Questions: 0
Answers: 0
April 2011
edited April 2011
in
General
Could you please let me know how do i get the page number that i click on?
i need to send the current page number to the server side data.
thanks.
Replies
pfg
Posts: 5
Questions: 0
Answers: 0
September 2011
var page = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
allan
Posts: 65,841
Questions: 1
Answers: 10,953
Site admin
September 2011
The API method http://datatables.net/plug-ins/api#fnPagingInfo will give you this kind of information. Or pfg's solution will work just as nicely :-)
Allan
This discussion has been closed.
Replies
Allan