code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
// DATA_TEMPLATE: js_data
oTest.fnStart( "Sanity checks for DataTables with data from JS" );
oTest.fnTest(
"jQuery.dataTable function",
null,
function () { return typeof jQuery().dataTable == "function"; }
);
oTest.fnTest(
"jQuery.dataTableSettings storage array",
null,
function () { return typeof jQuery().dat... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oLanguage.sSearch" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Search language is 'Search:' by default",
null,
function () { retur... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "bPaginate" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"aaData": gaaData
} );
oTest.fnTest(
"Pagiantion div exists by default",
null,
function () { return document.getElementById('example_paginate') != null; }
);
oT... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oLanguage.sUrl" );
/* Note that we only test the internal storage of language information pulled form a file here
* as the other language tests will check it goes into the DOM correctly
*/
$(document).ready( function () {
/* Check the default */
var oTable = $('#example')... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "fnFooterCallback" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
var mPass;
oTest.fnTest(
"Default should be null",
null,
function () { return oSet... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "bSort" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"aaData": gaaData
} );
oTest.fnTest(
"Sorting is on by default",
null,
function () { return $('#example tbody td:eq(0)').html() == "Gecko"; }
);
oTest.fnTest(
"S... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "sAjaxSource" );
/* Not interested in ajax source here other than to check it's default */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Se... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "6872 - mDataProp and sDefaultContent for deep objects" );
$(document).ready( function () {
var test = false;
$.fn.dataTable.ext.sErrMode = "throw";
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Shallow properties
*/
$('#exampl... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oLanguage.sProcessing" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData,
"bProcessing": true
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Processing language is 'Processing...' by de... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oSearch" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Default values should be blank",
null,
function () {
var bReturn = oSettin... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "fnCreatedRow tests" );
$(document).ready( function () {
var tmp = 0;
$('#example').dataTable( {
"aaData": gaaData,
fnCreatedRow: function () {
tmp++;
}
} );
oTest.fnTest(
"Row created is called once for each row on init",
null,
function () { return tmp==... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "8549 - string sorting non-string types" );
$(document).ready( function () {
var test = false;
$.fn.dataTable.ext.sErrMode = "throw";
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Shallow properties
*/
$('#example').dataTable( ... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oLanguage.sZeroRecords" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Zero records language is 'No matching records found' by default",
... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oLanguage.oPaginate" );
/* Note that the paging language information only has relevence in full numbers */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData,
"sPaginationType": "full_numbers"
} );
var oS... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "fnDrawCallback" );
/* Fairly boring function compared to the others! */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
var mPass;
oTest.fnTest(
"Default ... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "bAutoWidth" );
/* It's actually a little tricky to test this. We can't test absolute numbers because
* different browsers and different platforms will render the width of the columns slightly
* differently. However, we certainly can test the principle of what should happen (... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "aoColumns.bUseRendered" );
/* bUseRendered is used to alter sorting data, if false then the original data is used for
* sorting rather than the rendered data
*/
$(document).ready( function () {
/* Check the default */
var mTmp = 0;
var oTable = $('#example').dataTable(... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "bLengthChange" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"aaData": gaaData
} );
oTest.fnTest(
"Length div exists by default",
null,
function () { return document.getElementById('example_length') != null; }
);
oTes... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "fnCreatedCell tests" );
$(document).ready( function () {
var tmp = 0;
$('#example').dataTable( {
"aaData": gaaData,
"aoColumnDefs": [ {
fnCreatedCell: function () {
tmp++;
},
"aTargets": ["_all"]
} ]
} );
oTest.fnTest(
"Cell created is called once ... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "aoColumns.bSortable" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"All columns are sortable by default",
function () { $('#example the... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "bInfo" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"aaData": gaaData
} );
oTest.fnTest(
"Info div exists by default",
null,
function () { return document.getElementById('example_info') != null; }
);
/* Check can dis... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "bSortClasses" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"aaData": gaaData
} );
oTest.fnTest(
"Sorting classes are applied by default",
null,
function () { return $('#example tbody tr:eq(0) td:eq(0)').hasClass('sorting... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "aoColumns.iDataSort" );
$(document).ready( function () {
/* Should know that sorting already works by default from other tests, so we can jump
* right in here
*/
var oTable = $('#example').dataTable( {
"aaData": gaaData,
"aoColumns": [
null,
{ "iDataSort": 4 },... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "aoColumns.bSeachable" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Columns are searchable by default",
function () { oTable.fnFilter(... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "aoColumns.bVisible" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"All columns are visible by default",
null,
function () { return $(... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "bProcessing" );
/* It's actually a bit hard to set this one due to the fact that it will only be shown
* when DataTables is doing some kind of processing. The server-side processing is a bit
* better to test this than here - so we just the interal functions to enable it and ... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oLanguage.sInfoPostFix" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Info post fix language is '' (blank) by default",
null,
functi... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "asStripeClasses" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"aaData": gaaData
} );
oTest.fnTest(
"Default row striping is applied",
null,
function () {
return $('#example tbody tr:eq(0)').hasClass('odd') &&
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "39 - nested null values" );
$(document).ready( function () {
var test = false;
$.fn.dataTable.ext.sErrMode = "throw";
oTest.fnTest(
"No default content throws an error",
function () {
try {
$('#example').dataTable( {
"aaData": [
{ "a": "0", "b": ... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "bServerSide" );
/* Not interested in server-side processing here other than to check that it is off */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.f... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "sDom" );
/* This is going to be brutal on the browser! There is a lot that can be tested here... */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTe... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "fnHeaderCallback" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
var mPass;
oTest.fnTest(
"Default should be null",
null,
function () { return oSet... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "sPaginationType" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Check two button paging is the default",
null,
function () { return o... | JavaScript |
// DATA_TEMPLATE: js_data_mixed_types
oTest.fnStart( "Sanity checks for DataTables with data from JS with mixed data types" );
$(document).ready( function () {
var oInit = {
"aaData": gaaData
};
$('#example').dataTable( oInit );
oTest.fnTest(
"10 rows shown on the first page",
null,
function () { return... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oLanguage.sInfoEmpty" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Info empty language is 'Showing 0 to 0 of 0 entries' by default",
... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oLanguage.sLengthMenu" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Menu language is 'Show _MENU_ entries' by default",
null,
funct... | JavaScript |
// DATA_TEMPLATE: js_data
oTest.fnStart( "oLanguage.sInfo" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"aaData": gaaData
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Info language is 'Showing _START_ to _END_ of _TOTAL_ entries' by default... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.sClass" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
oTes... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aaSorting" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
oTest.fnWai... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoSearchCols" );
/* We could be here forever testing this one, so we test a limited subset on a couple of colums */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../example... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aaSortingFixed" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
oTest.... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnInitComplete" );
/* Fairly boring function compared to the others! */
$(document).ready( function () {
oTest.fnWaitTest(
"Two arguments passed",
function () {
mPass = -1;
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../exam... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.fnRender" );
$(document).ready( function () {
/* Check the default */
var mTmp = 0;
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
"aoColumns": [
null,
{ "f... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.sWidth" );
/* NOTE - we need to disable the auto width for the majority of these test in order to preform
* these tests as the auto width will convert the width to a px value. We can do 'non-exact' tests
* with auto width enabled however to ensure it scales co... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.sName" );
/* This has no effect at all in DOM methods - so we just check that it has applied the name */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnRowCallback" );
/* Note - fnRowCallback MUST return the first arguments (modified or not) */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.sTitle" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
oTes... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "iDisplayLength" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(
"Default length is ten",
null,
f... | JavaScript |
// DATA_TEMPLATE: empty_table
/*
* NOTE: There are some differences in this zero config script for server-side
* processing compared to the other data sources. The main reason for this is the
* difference in how the server-side processing does it's filtering. Also the
* sorting state is always reset on each draw.
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bFilter" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(
"Filtering div exists by default",
null,
... | JavaScript |
// DATA_TEMPLATE: empty_table
/*
* NOTE: There are some differences in this zero config script for server-side
* processing compared to the other data sources. The main reason for this is the
* difference in how the server-side processing does it's filtering. Also the
* sorting state is always reset on each draw.
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sSearch" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
oTe... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bPaginate" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(
"Pagiantion div exists by default",
nul... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sUrl" );
/* Note that we only test the internal storage of language information pulled form a file here
* as the other language tests will check it goes into the DOM correctly
*/
$(document).ready( function () {
/* Check the default */
var oTable = $('#examp... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bSort" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(
"Sorting is on by default",
null,
functio... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "sAjaxSource" );
/* Sanitfy check really - all the other tests blast this */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sProcessing" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
"bProcessing": true
} );
var oSettings = ... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "iDraw - check that iDraw increments for each draw" );
$(document).ready( function () {
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings()... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oSearch" );
/* Note with my server-side scripts the regex option has no effect - this just runs that down */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/serve... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "2600 - Display rewind when changing length" );
$(document).ready( function () {
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(
"Info correct on init",
null,
... | JavaScript |
// DATA_TEMPLATE: deferred_table
/*
*/
oTest.fnStart( "Defer loading tests" );
$(document).ready( function () {
var gotServerData = false;
$('#example').dataTable( {
"iDeferLoading": 57,
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
"fnServerData": func... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnCreatedRow tests" );
$(document).ready( function () {
var tmp = 0;
var complete = false;
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
fnCreatedRow: function () {
tmp++;
}
} )... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sZeroRecords" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.oPaginate" );
/* Note that the paging language information only has relevence in full numbers */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnDrawCallback" );
/* Fairly boring function compared to the others! */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bAutoWidth" );
/* It's actually a little tricky to test this. We can't test absolute numbers because
* different browsers and different platforms will render the width of the columns slightly
* differently. However, we certainly can test the principle of what should happ... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.bUseRendered" );
/* bUseRendered is used to alter sorting data, if false then the original data is used for
* sorting rather than the rendered data
*/
$(document).ready( function () {
/* Check the default */
var mTmp = 0;
var oTable = $('#example').dataTa... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bLengthChange" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(
"Length div exists by default",
nul... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnCreatedCell tests" );
$(document).ready( function () {
var tmp = 0;
var complete = false;
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
"aoColumnDefs": [ {
fnCreatedCell: functio... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.bSortable" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
o... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "Destroy with hidden columns" );
$(document).ready( function () {
var mTest;
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
"aoColumnDefs": [
{ "bSearchable": false, "bVisible": f... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bInfo" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(
"Info div exists by default",
null,
funct... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bSortClasses" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(
"Sorting classes are applied by defaul... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bInfiniteScroll" );
$(document).ready( function () {
var oTable = $('#example').dataTable( {
"bScrollInfinite": true,
"sScrollY": "200px",
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.bSeachable" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.bVisible" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
oT... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bProcessing" );
/* It's actually a bit hard to set this one due to the fact that it will only be shown
* when DataTables is doing some kind of processing. The server-side processing is a bit
* better to test this than here - so we just the interal functions to enable it ... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sInfoPostFix" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "asStripeClasses" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
oTest.fnWaitTest(
"Default row striping is applied",
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bServerSide" );
/* All the other scripts blast the ssp processing */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
}... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "sDom" );
/* This is going to be brutal on the browser! There is a lot that can be tested here... */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/sc... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnHeaderCallback" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
var mP... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "sPaginationType" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
oTest... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sInfoEmpty" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sLengthMenu" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sInfo" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSettings();
oTest... | JavaScript |
// DATA_TEMPLATE: empty_table
/*
* NOTE: There are some differences in this zero config script for server-side
* processing compared to the other data sources. The main reason for this is the
* difference in how the server-side processing does it's filtering. Also the
* sorting state is always reset on each draw.
... | JavaScript |
/*
* File: jquery.dataTables.columnFilter.js
* Version: 1.5.0.
* Author: Jovan Popovic
*
* Copyright 2011-2012 Jovan Popovic, all rights reserved.
*
* This source file is free software, under either the GPL v2 license or a
* BSD style license, as supplied with this software.
*
* This sourc... | JavaScript |
/**
* Initialisation options that can be given to DataTables at initialisation
* time.
* @namespace
*/
DataTable.defaults = {
/**
* An array of data to use for the table, passed in at initialisation which
* will be used in preference to any data which is already in the DOM. This is
* particularly useful... | JavaScript |
/**
* Template object for the way in which DataTables holds information about
* each individual row. This is the object format used for the settings
* aoData array.
* @namespace
*/
DataTable.models.oRow = {
/**
* TR element for the row
* @type node
* @default null
*/
"nTr": null,
/**
* Data ob... | JavaScript |
/**
* DataTables settings object - this holds all the information needed for a
* given table, including configuration, data and current application of the
* table options. DataTables does not have a single instance for each DataTable
* with the settings attached to that instance, but rather instances of the
* Da... | JavaScript |
/**
* DataTables extension options and plug-ins. This namespace acts as a collection "area"
* for plug-ins that can be used to extend the default DataTables behaviour - indeed many
* of the build in methods use this method to provide their own capabilities (sorting methods
* for example).
*
* Note that this na... | JavaScript |
/**
* Template object for the column information object in DataTables. This object
* is held in the settings aoColumns array and contains all the information that
* DataTables needs about each individual column.
*
* Note that this object is related to {@link DataTable.defaults.columns}
* but this one is the ... | JavaScript |
/**
* Column options that can be given to DataTables at initialisation time.
* @namespace
*/
DataTable.defaults.columns = {
/**
* Allows a column's sorting to take multiple columns into account when
* doing a sort. For example first name / last name columns make sense to
* do a multi-column sort over the... | JavaScript |
/**
* Template object for the way in which DataTables holds information about
* search information for the global filter and individual column filters.
* @namespace
*/
DataTable.models.oSearch = {
/**
* Flag to indicate if the filtering should be case insensitive or not
* @type boolean
* @default true
... | JavaScript |
/*
* This is really a good bit rubbish this method of exposing the internal methods
* publicly... - To be fixed in 2.0 using methods on the prototype
*/
/**
* Create a wrapper function for exporting an internal functions to an external API.
* @param {string} sFunc API function name
* @returns {function} wrap... | JavaScript |
/**
* Provide a common method for plug-ins to check the version of DataTables being used, in order
* to ensure compatibility.
* @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the
* formats "X" and "X.Y" are also acceptable.
* @returns {boolean} true if this version of... | JavaScript |
/**
* Perform a jQuery selector action on the table's TR elements (from the tbody) and
* return the resulting jQuery object.
* @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
* @param {object} [oOpts] Optional parameters for modifying the rows to be included
* @param {string} ... | JavaScript |
/**
* @summary DataTables
* @description Paginate, search and sort HTML tables
* @version 1.9.4
* @file jquery.dataTables.js
* @author Allan Jardine (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
*
* @copyright Copyright 2008-2012 Allan Jardine, all rights reserved.
*
* T... | JavaScript |
/**
* Convert a CSS unit width to pixels (e.g. 2em)
* @param {string} sWidth width to be converted
* @param {node} nParent parent to get the with for (required for relative widths) - optional
* @returns {int} iWidth width in pixels
* @memberof DataTable#oApi
*/
function _fnConvertToWidth ( sWidth, nParent )
{... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.