Put all the statements in a modified copy of web2py_ajax.html
(myajax.html), you can use your URL coded ones or these:
<link href="/{{=request.application}}/static/css/datatables.css"
rel="stylesheet" type="text/css" media="screen" charset="utf-8" />
<script src="/{{=request.application}}/static/javascript/
jquery.dataTables.js" type="text/javascript"></script>
now look for the $(document).ready(function() {
and insert your
$('#example').dataTable();
there
or just add the whole javascript before or after the one already there
(I have been told you can have several $(document).ready functions but
I have not tried it).
Then copy layout.html (mylayout.html) and change the line that
includes the ajax code to read myajax.html or whatever name you used.
That's it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---