Change to specific page via page number?
Change to specific page via page number?
majorchamp
Posts: 1Questions: 0Answers: 0
I have modified the pagination to show the 4 main buttons (first, prev, next, last) and then have an input box in between them that lets me enter a page value. Then onblur, I want to jump to that page.
I cannot, for the life of me, determine how to make it do this. A search on this site led me to this comment from 2009
"2. You could make use of the fnPageChange() plug-in API function: http://datatables.net/plug-ins/api#fnPageChange . This will let you enter in an integer number and jump to that page."
However, the API page has changed and the fnPageChange() is no longer a plugin, but built into the core datatables file. However, it only accepts the text strings "previous, next, last, or first".
What are my options to make this work?
I cannot, for the life of me, determine how to make it do this. A search on this site led me to this comment from 2009
"2. You could make use of the fnPageChange() plug-in API function: http://datatables.net/plug-ins/api#fnPageChange . This will let you enter in an integer number and jump to that page."
However, the API page has changed and the fnPageChange() is no longer a plugin, but built into the core datatables file. However, it only accepts the text strings "previous, next, last, or first".
What are my options to make this work?
This discussion has been closed.
Replies
http://datatables.net/forums/comments.php?DiscussionID=2233&page=1#Item_2