How can I detect when the user has changed page inside the table?

How can I detect when the user has changed page inside the table?

rwillmerrwillmer Posts: 10Questions: 1Answers: 0
edited December 2012 in DataTables 1.9
Thanks for your help with my previous questions, Allan; I've now got DataTables working perfectly inside the Watchlist page of my ebook search site, http://luzme.com. Sorting, filtering, pagination: all things my users have been asking for all year and now I've finally gone live with that. THANK YOU!

Next question: I want to change the book images which are displayed when the user changes page inside the table. How do I detect when that happens? And how do I detect the list of displayed items?

Rachel

P.S. This is not urgent.. I know it's Hogmanay!

Replies

  • allanallan Posts: 63,389Questions: 1Answers: 10,450 Site admin
    I'd suggest using the fnDrawCallback method along with the fnPagingInfo ( http://datatables.net/plug-ins/api#fnPagingInfo ) plug-in. In fnDrawCallback you would then make a call to the paging info plug-in (simply `this.fnPagingInfo();` ) and check to see what page the user is on ( the `iPage` parameter). From there, you can take whatever action is needed :-)

    Allan
This discussion has been closed.