1<script>
2$(document).ready(function() {
3 $('#example').dataTable( {
4 "bProcessing": true,
5 "bServerSide": true,
6 "sAjaxSource": "http://localhost/staff/jobs/my_jobs",
7 "fnServerData": function ( sSource, aoData, fnCallback ) {
8 $.ajax( {
9 "dataType": 'json',
10 "type": "POST",
11 "url": sSource,
12 "data": aoData,
13 "success": fnCallback
14 } );
15 }
16 } );
17} );
18</script>