On Jul 22, 11:30 pm, ProfessionalIT <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---