I don't intend to be offensive, but why are you making such an effort to get the pagination code above to work? Why don't you use a jQuery plugin like dataTables? With just a few lines of code you enable a bunch of features on your tables.
In web2py_ajax.html you add: <link href="{{=URL(r=request,c='static',f='dataTables.css')}}" rel="stylesheet" type="text/css" media="screen" charset="utf-8" /> <script src="{{=URL (r=request,a='base',c='static',f='jquery.dataTables.js')}}" type="text/ javascript"></script> jQuery('#demo').dataTable({ 'bPaginate': true, 'sPaginationType': 'full_numbers', 'bLengthChange': true, 'iDisplayLength': 12, 'bFilter': true, 'bSort': true, 'bInfo': true, 'bAutoWidth': true }); In you view you define an html table: <table id="demo" class="display"> <thead> <tr> <th>activity</th> <th>manage record</th> </tr> </thead> <tbody> {{for activity in activities:}} <tr> <td>{{=activity.activiteit}}</td> <td>{{=A(T('update/delete'),_href=URL (r=request,f='update_activity',args=[record.bedrijfactiviteit.id]))}}</ td> </tr> {{pass}} </tbody> </table> And in a style sheet you style it the way you like. Apart from dataTables being straightforward to use, Alan, just like Massimo, answers your questions immediately. Kind regards, Annet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---