File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery Datatable pagination help

 
Joe Stela
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am using Jquery datatable.



I am using default pagination and displaying 25 records at a time. when user clicks on next button user can see next 25 records. I want to execute some code when user clicks on next/prev buttons. For that I want to know whether user has clicked next or prev button.

Can anybody tell me how will I know which button user has clicked?

If I use "fnDrawCallback":functionName , I just get the information that user is navigating to next/prev page. Can I also get prev/next button information in this function?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The documentation of the plugin should have the details of the information that is published with the events.
 
Joe Stela
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My problem got solved...

We can use "fnInfoCallback" instead of fnDrawCallback.

fnInfoCallback gives all the information related to records on page.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting back with your findings.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic