1 // DATA_TEMPLATE: empty_table
2 oTest.fnStart( "bPaginate" );
4 $(document).ready( function () {
5 /* Check the default */
6 $('#example').dataTable( {
7 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
11 "Pagiantion div exists by default",
13 function () { return document.getElementById('example_paginate') != null; }
17 "Information div takes paging into account",
19 function () { return document.getElementById('example_info').innerHTML ==
20 "Showing 1 to 10 of 57 entries"; }
23 /* Check can disable */
25 "Pagiantion can be disabled",
28 $('#example').dataTable( {
29 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
33 function () { return document.getElementById('example_paginate') == null; }
37 "Information div takes paging disabled into account",
39 function () { return document.getElementById('example_info').innerHTML ==
40 "Showing 1 to 57 of 57 entries"; }
43 /* Enable makes no difference */
45 "Pagiantion enabled override",
48 $('#example').dataTable( {
49 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
53 function () { return document.getElementById('example_paginate') != null; }