Monday, July 17th, 2006
AJAX pagination made simple (with Symfony)
Users of the PHP framework symfony are no strangers to easy-to-use functionality, and in this new post on the symfony blog, they share yet another - an Ajax pagination method.
Paginated lists in web pages imply specific controls to navigate across pages (link to previous and next page, link to a specific page, etc.). And lists are paginated because they are often too big to load. But when AJAX comes in, this last constraint disappears, and the specific controls can easily be replaced by a more intuitive tool: The browser’s scroll bar.
They include both an image/demo with an example of how the functionality works as well as (of course) the PHP code to make it all happen.












Very nice! I was just about to jump into a ‘lazy paging’ system for a web app that has a large recordset currently broken up by the classic ‘pagination’ method. This article will come in handy I think!
Symfony is an incredible web programming framework. Be warned that Symfony has a bit of a steep learning curve, but it is definitely worth it when get used to using Symfony. The Ajax integration in the framework makes Symfony a very powerful tool. Symfony is to PHP as Rails is to Ruby.
Symfony simple rocks !
i love symfony!
a while ago i was trieing some php5 frameworks and decided to use symfony. Bisides the fact that symfony has nearly all i needed it is very well documented!
Yea, but it is tough to install. I had a nighmare going when I was installing it.
This pagination creates the problem it’s trying to solve. Now you HAVE to go from page 1 to N, one by one. It looks nice, but it’s not clever.
@Paul, it’s a basic example that’s easily expanded upon.