How to get the current page number?

How to get the current page number?

lee911lee911 Posts: 4Questions: 0Answers: 0
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

  • pfgpfg Posts: 5Questions: 0Answers: 0
    var page = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
  • allanallan Posts: 63,531Questions: 1Answers: 10,475 Site admin
    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.