1 // DATA_TEMPLATE: empty_table
2 oTest.fnStart( "bPaginate" );
4 $(document).ready( function () {
5 /* Check the default */
6 $('#example').dataTable( {
8 "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
12 "Pagiantion div exists by default",
14 function () { return document.getElementById('example_paginate') != null; }
18 "Information div takes paging into account",
20 function () { return document.getElementById('example_info').innerHTML ==
21 "Showing 1 to 10 of 57 entries"; }
24 /* Check can disable */
26 "Pagiantion can be disabled",
29 $('#example').dataTable( {
31 "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
35 function () { return document.getElementById('example_paginate') == null; }
39 "Information div takes paging disabled into account",
41 function () { return document.getElementById('example_info').innerHTML ==
42 "Showing 1 to 57 of 57 entries"; }
45 /* Enable makes no difference */
47 "Pagiantion enabled override",
50 $('#example').dataTable( {
52 "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
56 function () { return document.getElementById('example_paginate') != null; }