Ajax

Posted by Kiran
I was recently developing a Drupal module that required having multiple tables on the same page. No issues right? Wrong! As soon as I put multiple tables with pagers on the same page, I found that the pagers on the tables just stopped working.

Flummoxed, I started searching for a solution and finally stumbled upon Rahul Singla's blog explaining how to implement table pagers using ajax. However, Rahul's script did not handle graceful degradation, which was important for me. Hence, using Rahul's approach & script as a starting-point template and reading up a bit more about the PagerDefault and TableSort query extenders in Drupal, this is what I came up with: