1 // DATA_TEMPLATE: empty_table
2 oTest.fnStart( "oLanguage.sLoadingRecords" );
4 $(document).ready( function () {
7 "Default loading text is 'Loading...'",
9 $('#example').dataTable( {
10 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
12 tmp = $('#example tbody tr td')[0].innerHTML == "Loading...";
14 function () { return tmp; }
18 "Text can be overriden",
21 $('#example').dataTable( {
23 "sLoadingRecords": "unitest"
25 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
27 tmp = $('#example tbody tr td')[0].innerHTML == "unitest";
29 function () { return tmp; }
33 "When sZeroRecords is given but sLoadingRecords is not, sZeroRecords is used",
36 $('#example').dataTable( {
38 "sZeroRecords": "unitest_sZeroRecords"
40 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
42 tmp = $('#example tbody tr td')[0].innerHTML == "unitest_sZeroRecords";
44 function () { return tmp; }
48 "sLoadingRecords and sZeroRecords both given",
51 $('#example').dataTable( {
53 "sZeroRecords": "unitest_sZeroRecords2",
54 "sLoadingRecords": "unitest2"
56 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
58 tmp = $('#example tbody tr td')[0].innerHTML == "unitest2";
60 function () { return tmp; }