Remove PHP from the landscape and put web2py there. You can use any AJAX enabled grid that does what you need. Write a controller that gets called by the grid and sends JSON encoded rows back to the grid, when the scroll to the end event is generated on the grid.
For instance you can bind a call to the web2py controller to the onScroll event https://github.com/mleibman/SlickGrid/wiki/Grid-Events 2014-07-21 18:23 GMT+02:00 Thiago Duarte <[email protected]>: > Hi there, > > I tweaked a couple of codes of a pagination demo, but it doesn't worked > for me because the page is refreshed, I'm wanting add a button which always > gets the next 10 rows from a table when clicked, so that contents is loaded > always below, like an infinite scroll. I've seen a lot of examples on how > to implement it in a webpage and it seems the easiest way to managed it is > using PHP, jQuery, JSON, etc, associated with the database. > I would to know if there is a way to achieve this only using the web2py > features, or there is no way and I should to use these languages above. > (I took a quick look in chapters 6 and 7 of the manual, is SQLFORMS.grid > what I'm looking for?) > > Thanks in advance > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

