I downloaded the latest dataTables file, unzipped dataTables and
copied and pasted the jquery.dataTables.js file, the image files and
the demos.css into their respective folders in the static folder of my
application.
Furthermore I added the following lines of code to the
web2py_ajax.html file
<link href="{{=URL(r=request,c='static',f='css/datatables.css')}}"
rel="stylesheet" type="text/css" media="screen" charset="utf-8" />
<script src="{{=URL(r=request,c='static',f='javascript/
jquery.dataTables.js')}}" type="text/javascript"></script>
Now, I am having trouble figuring out the next step. I have a view
which extends a layout view. According to the dataTable example I
should put the following <script></script> element in the <head></
head> element of my html page.
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#example').dataTable();
} );
</script>
However, whereas my layout view does have a <head></head> element, the
view in question does not. So, where do I insert the above script into
my code.
Is there anything else I should now about dataTables in web2py?
Thanks,
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 [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
-~----------~----~----~----~------~----~------~--~---