We've implemented something similar but what I now need is to eliminate the next / previous page of my paginated table and instead have the verticle scrollbar have scroll height based on the total number of records and not simply the displayed records. When the user scrolls vertically, the onscroll callback registered with div should dynamically fetch the new rows from the server basd on the new percentage based position of the vertical scrollbar. In other words, the table should look and behave more like a thick client table.
Without looking at the code I would assume that this is what it does.
An initial request is made either when the page is rendered by the server or by Ajax. It says I have XXX rows so it builds a table with XXX rows with no data. It fills in the top values. It then determines the scroll position and relates that to amount of rows scrolled. It then sends a request for the next number of rows each time it is scrolled.
That is my guess.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop