On Jul 22, 11:30 pm, ProfessionalIT <lsever...@gmail.com> wrote:
> > > and implement a pagination in the records..Where/How I can do this ?
> > I do paginationclient-side using the excellent jQuery dataTables
> > plugin:http://datatables.net
>    Humm, How to integrate this datatables with Web2Py ? Do you have a
> example ?

Controller:
items = crud.select(table, _id='list')

Add this to your view:
<script src="/{{=request.application}}/static/scripts/
jquery.dataTables.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">//<![CDATA[
$(document).ready(function() {
        $('#list').dataTable();
} );
//]]></script>
{{=items}}

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to