mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-19 17:54:14 +01:00
New: Significant change to how data is handled by DataTables. DataTables now has the ability to deal with complex objects as data sourced, which is particularly useful for dealing with Ajax data, and other data which doesn't belong in the visible table (db IDs for example). See the examples/ajax/ files that are in this commit for examples on how this works. More unit tests and further tidy up to come. Detailed examples will also be added in future - the current examples are mainly for testing
This commit is contained in:
parent
70305b1831
commit
f172ef5383
@ -17,7 +17,16 @@
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function() {
|
||||
$('#example').dataTable();
|
||||
$('#example').dataTable( {
|
||||
"sScrollY": "300px",
|
||||
"bPaginate": false,
|
||||
"aoColumnDefs": [
|
||||
{ "bVisible": false, "aTargets": [3] },
|
||||
{ "sWidth": "50%", "aTargets": [2] }
|
||||
]
|
||||
} );
|
||||
//$('#example').dataTable().fnSetColumnVis( 1, false );
|
||||
//$('#example').dataTable().fnSetColumnVis( 1, true );
|
||||
} );
|
||||
</script>
|
||||
</head>
|
||||
@ -34,6 +43,38 @@
|
||||
<div id="demo">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="bl bt">Rendering engine</th>
|
||||
<th colspan="3" rowspan="2" class="bl br bt">Browser details</th>
|
||||
<th class="br bt">CSS grade</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bl br" rowspan="3">1</th>
|
||||
<td class="bl br">3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bl br" colspan="2">Browser</th>
|
||||
<th class="br" rowspan="3">Engine version</th>
|
||||
<th class="br bt" rowspan="3">CSS grade</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bl br">Browser</th>
|
||||
<th class="bl br">Platform(s)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bl br" colspan="2">2</th>
|
||||
<th class="bl br">Platform(s)</th>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Engine version</th>
|
||||
<th>CSS grade</th>
|
||||
<th>Market share</th>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<th rowspan="2" class="bl bt">Rendering engine</th>
|
||||
<th colspan="3" class="bl br bt">Browser details</th>
|
||||
@ -44,7 +85,8 @@
|
||||
<th>Platform(s)</th>
|
||||
<th class="br">Engine version</th>
|
||||
</tr>
|
||||
<!--
|
||||
|
||||
|
||||
<tr>
|
||||
<th rowspan="2">Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
@ -464,11 +506,13 @@
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Platform(s)</th>
|
||||
<th>Engine version</th>
|
||||
<th>CSS grade</th>
|
||||
<th class="bl bt">Rendering engine</th>
|
||||
<th colspan="3" rowspan="2" class="bl br bt">Browser details</th>
|
||||
<th class="br bt">CSS grade</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bl br">1</th>
|
||||
<th class="bl br">3</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
166
examples/ajax/ajax.html
Normal file
166
examples/ajax/ajax.html
Normal file
@ -0,0 +1,166 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
|
||||
|
||||
<title>DataTables example</title>
|
||||
<style type="text/css" title="currentStyle">
|
||||
@import "../../media/css/demo_page.css";
|
||||
@import "../../media/css/demo_table.css";
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function() {
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/arrays.txt"
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
</head>
|
||||
<body id="dt_example">
|
||||
<div id="container">
|
||||
<div class="full_width big">
|
||||
<i>DataTables</i> AJAX source example
|
||||
</div>
|
||||
|
||||
<h1>Preamble</h1>
|
||||
<p>Although <i>DataTables</i> is built from the principle of progressive enhancement, it is often useful to be able to construct a table from an AJAX source. This can be done in one of two ways - either using the <b>aData</b> initialisation parameter which takes an array of data, or using the <b>sAjaxSource</b> initialisation parameter which will have <i>DataTables</i> go to that source with an XHR call and load data from there. This example shows the latter method in action. <i>DataTables</i> expects an object with an array called "aaData" with the data source.</p>
|
||||
|
||||
<h1>Live example</h1>
|
||||
<div id="dynamic">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%">Rendering engine</th>
|
||||
<th width="25%">Browser</th>
|
||||
<th width="25%">Platform(s)</th>
|
||||
<th width="15%">Engine version</th>
|
||||
<th width="15%">CSS grade</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Platform(s)</th>
|
||||
<th>Engine version</th>
|
||||
<th>CSS grade</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
|
||||
|
||||
<h1>Initialisation code</h1>
|
||||
<pre>$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/arrays.txt"
|
||||
} );
|
||||
} );</pre>
|
||||
|
||||
|
||||
<h1>Other examples</h1>
|
||||
<h2>Basic initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../basic_init/zero_config.html">Zero configuration</a></li>
|
||||
<li><a href="../basic_init/filter_only.html">Feature enablement</a></li>
|
||||
<li><a href="../basic_init/table_sorting.html">Sorting data</a></li>
|
||||
<li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li>
|
||||
<li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li>
|
||||
<li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li>
|
||||
<li><a href="../basic_init/dom.html">DOM positioning</a></li>
|
||||
<li><a href="../basic_init/state_save.html">State saving</a></li>
|
||||
<li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li>
|
||||
<li>Scrolling:
|
||||
<a href="../basic_init/scroll_x.html">Horizontal</a> /
|
||||
<a href="../basic_init/scroll_y.html">Vertical</a> /
|
||||
<a href="../basic_init/scroll_xy.html">Both</a> /
|
||||
<a href="../basic_init/scroll_y_theme.html">Themed</a> /
|
||||
<a href="../basic_init/scroll_y_infinite.html">Infinite</a>
|
||||
</li>
|
||||
<li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li>
|
||||
<li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Advanced initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../advanced_init/events_pre_init.html">Events (pre initialisation)</a></li>
|
||||
<li><a href="../advanced_init/events_post_init.html">Events (post initialisation)</a></li>
|
||||
<li><a href="../advanced_init/column_render.html">Column rendering</a></li>
|
||||
<li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li>
|
||||
<li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li>
|
||||
<li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li>
|
||||
<li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li>
|
||||
<li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li>
|
||||
<li><a href="../advanced_init/complex_header.html">Column grouping through col/row spans</a></li>
|
||||
<li><a href="../advanced_init/row_grouping.html">Row grouping</a></li>
|
||||
<li><a href="../advanced_init/row_callback.html">Row callback</a></li>
|
||||
<li><a href="../advanced_init/footer_callback.html">Footer callback</a></li>
|
||||
<li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Data sources</h2>
|
||||
<ul>
|
||||
<li><a href="../data_sources/dom.html">DOM</a></li>
|
||||
<li><a href="../data_sources/js_array.html">Javascript array</a></li>
|
||||
<li><a href="../data_sources/ajax.html">Ajax source</a></li>
|
||||
<li><a href="../data_sources/server_side.html">Server side processing</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Server-side processing</h2>
|
||||
<ul>
|
||||
<li><a href="../server_side/server_side.html">Obtain server-side data</a></li>
|
||||
<li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li>
|
||||
<li><a href="../server_side/post.html">Use HTTP POST</a></li>
|
||||
<li><a href="../server_side/column_ordering.html">Custom column ordering (in callback data)</a></li>
|
||||
<li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li>
|
||||
<li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>API</h2>
|
||||
<ul>
|
||||
<li><a href="../api/add_row.html">Dynamically add a new row</a></li>
|
||||
<li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li>
|
||||
<li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li>
|
||||
<li><a href="../api/highlight.html">Highlight rows and columns</a></li>
|
||||
<li><a href="../api/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li>
|
||||
<li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li>
|
||||
<li><a href="../api/editable.html">Editable rows (with jEditable)</a></li>
|
||||
<li><a href="../api/form.html">Submit form with elements in table</a></li>
|
||||
<li><a href="../api/counter_column.html">Index column (static number column)</a></li>
|
||||
<li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li>
|
||||
<li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li>
|
||||
<li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li>
|
||||
<li><a href="../api/regex.html">Regular expression filtering</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Plug-ins</h2>
|
||||
<ul>
|
||||
<li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li>
|
||||
<li><a href="../plug-ins/sorting_plugin.html">Sorting and type detection</a></li>
|
||||
<li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li>
|
||||
<li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li>
|
||||
<li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li>
|
||||
<li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>Please refer to the <a href="http://www.datatables.net/"><i>DataTables</i> documentation</a> for full information about its API properties and methods.</p>
|
||||
|
||||
|
||||
<div id="footer" style="text-align:center;">
|
||||
<span style="font-size:10px;">DataTables © Allan Jardine 2008-2010</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
176
examples/ajax/arrays_subobjects.html
Normal file
176
examples/ajax/arrays_subobjects.html
Normal file
@ -0,0 +1,176 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
|
||||
|
||||
<title>DataTables example</title>
|
||||
<style type="text/css" title="currentStyle">
|
||||
@import "../../media/css/demo_page.css";
|
||||
@import "../../media/css/demo_table.css";
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function() {
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/arrays_subobjects.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
{ "mDataSource": 2 },
|
||||
{ "mDataSource": "3.version" },
|
||||
{ "mDataSource": "3.grade" }
|
||||
],
|
||||
"fnInitComplete": function () {
|
||||
oTable.fnUpdate( 'AAAA', $('tbody>tr:eq(0)')[0], 4 );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
</head>
|
||||
<body id="dt_example">
|
||||
<div id="container">
|
||||
<div class="full_width big">
|
||||
<i>DataTables</i> AJAX source example
|
||||
</div>
|
||||
|
||||
<h1>Preamble</h1>
|
||||
<p>Although <i>DataTables</i> is built from the principle of progressive enhancement, it is often useful to be able to construct a table from an AJAX source. This can be done in one of two ways - either using the <b>aData</b> initialisation parameter which takes an array of data, or using the <b>sAjaxSource</b> initialisation parameter which will have <i>DataTables</i> go to that source with an XHR call and load data from there. This example shows the latter method in action. <i>DataTables</i> expects an object with an array called "aaData" with the data source.</p>
|
||||
|
||||
<h1>Live example</h1>
|
||||
<div id="dynamic">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%">Rendering engine</th>
|
||||
<th width="25%">Browser</th>
|
||||
<th width="25%">Platform(s)</th>
|
||||
<th width="15%">Engine version</th>
|
||||
<th width="15%">CSS grade</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Platform(s)</th>
|
||||
<th>Engine version</th>
|
||||
<th>CSS grade</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
|
||||
|
||||
<h1>Initialisation code</h1>
|
||||
<pre>$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/arrays.txt"
|
||||
} );
|
||||
} );</pre>
|
||||
|
||||
|
||||
<h1>Other examples</h1>
|
||||
<h2>Basic initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../basic_init/zero_config.html">Zero configuration</a></li>
|
||||
<li><a href="../basic_init/filter_only.html">Feature enablement</a></li>
|
||||
<li><a href="../basic_init/table_sorting.html">Sorting data</a></li>
|
||||
<li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li>
|
||||
<li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li>
|
||||
<li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li>
|
||||
<li><a href="../basic_init/dom.html">DOM positioning</a></li>
|
||||
<li><a href="../basic_init/state_save.html">State saving</a></li>
|
||||
<li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li>
|
||||
<li>Scrolling:
|
||||
<a href="../basic_init/scroll_x.html">Horizontal</a> /
|
||||
<a href="../basic_init/scroll_y.html">Vertical</a> /
|
||||
<a href="../basic_init/scroll_xy.html">Both</a> /
|
||||
<a href="../basic_init/scroll_y_theme.html">Themed</a> /
|
||||
<a href="../basic_init/scroll_y_infinite.html">Infinite</a>
|
||||
</li>
|
||||
<li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li>
|
||||
<li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Advanced initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../advanced_init/events_pre_init.html">Events (pre initialisation)</a></li>
|
||||
<li><a href="../advanced_init/events_post_init.html">Events (post initialisation)</a></li>
|
||||
<li><a href="../advanced_init/column_render.html">Column rendering</a></li>
|
||||
<li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li>
|
||||
<li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li>
|
||||
<li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li>
|
||||
<li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li>
|
||||
<li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li>
|
||||
<li><a href="../advanced_init/complex_header.html">Column grouping through col/row spans</a></li>
|
||||
<li><a href="../advanced_init/row_grouping.html">Row grouping</a></li>
|
||||
<li><a href="../advanced_init/row_callback.html">Row callback</a></li>
|
||||
<li><a href="../advanced_init/footer_callback.html">Footer callback</a></li>
|
||||
<li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Data sources</h2>
|
||||
<ul>
|
||||
<li><a href="../data_sources/dom.html">DOM</a></li>
|
||||
<li><a href="../data_sources/js_array.html">Javascript array</a></li>
|
||||
<li><a href="../data_sources/ajax.html">Ajax source</a></li>
|
||||
<li><a href="../data_sources/server_side.html">Server side processing</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Server-side processing</h2>
|
||||
<ul>
|
||||
<li><a href="../server_side/server_side.html">Obtain server-side data</a></li>
|
||||
<li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li>
|
||||
<li><a href="../server_side/post.html">Use HTTP POST</a></li>
|
||||
<li><a href="../server_side/column_ordering.html">Custom column ordering (in callback data)</a></li>
|
||||
<li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li>
|
||||
<li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>API</h2>
|
||||
<ul>
|
||||
<li><a href="../api/add_row.html">Dynamically add a new row</a></li>
|
||||
<li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li>
|
||||
<li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li>
|
||||
<li><a href="../api/highlight.html">Highlight rows and columns</a></li>
|
||||
<li><a href="../api/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li>
|
||||
<li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li>
|
||||
<li><a href="../api/editable.html">Editable rows (with jEditable)</a></li>
|
||||
<li><a href="../api/form.html">Submit form with elements in table</a></li>
|
||||
<li><a href="../api/counter_column.html">Index column (static number column)</a></li>
|
||||
<li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li>
|
||||
<li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li>
|
||||
<li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li>
|
||||
<li><a href="../api/regex.html">Regular expression filtering</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Plug-ins</h2>
|
||||
<ul>
|
||||
<li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li>
|
||||
<li><a href="../plug-ins/sorting_plugin.html">Sorting and type detection</a></li>
|
||||
<li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li>
|
||||
<li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li>
|
||||
<li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li>
|
||||
<li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>Please refer to the <a href="http://www.datatables.net/"><i>DataTables</i> documentation</a> for full information about its API properties and methods.</p>
|
||||
|
||||
|
||||
<div id="footer" style="text-align:center;">
|
||||
<span style="font-size:10px;">DataTables © Allan Jardine 2008-2010</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
173
examples/ajax/deep.html
Normal file
173
examples/ajax/deep.html
Normal file
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
|
||||
|
||||
<title>DataTables example</title>
|
||||
<style type="text/css" title="currentStyle">
|
||||
@import "../../media/css/demo_page.css";
|
||||
@import "../../media/css/demo_table.css";
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function() {
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/deep.txt",
|
||||
"aoColumns": [
|
||||
{ "mDataSource": "engine" },
|
||||
{ "mDataSource": "browser" },
|
||||
{ "mDataSource": "platform.inner" },
|
||||
{ "mDataSource": "platform.details.0" },
|
||||
{ "mDataSource": "platform.details.1" }
|
||||
]
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
</head>
|
||||
<body id="dt_example">
|
||||
<div id="container">
|
||||
<div class="full_width big">
|
||||
<i>DataTables</i> AJAX source example
|
||||
</div>
|
||||
|
||||
<h1>Preamble</h1>
|
||||
<p>Although <i>DataTables</i> is built from the principle of progressive enhancement, it is often useful to be able to construct a table from an AJAX source. This can be done in one of two ways - either using the <b>aData</b> initialisation parameter which takes an array of data, or using the <b>sAjaxSource</b> initialisation parameter which will have <i>DataTables</i> go to that source with an XHR call and load data from there. This example shows the latter method in action. <i>DataTables</i> expects an object with an array called "aaData" with the data source.</p>
|
||||
|
||||
<h1>Live example</h1>
|
||||
<div id="dynamic">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%">Rendering engine</th>
|
||||
<th width="25%">Browser</th>
|
||||
<th width="25%">Platform(s)</th>
|
||||
<th width="15%">Engine version</th>
|
||||
<th width="15%">CSS grade</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Platform(s)</th>
|
||||
<th>Engine version</th>
|
||||
<th>CSS grade</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
|
||||
|
||||
<h1>Initialisation code</h1>
|
||||
<pre>$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/arrays.txt"
|
||||
} );
|
||||
} );</pre>
|
||||
|
||||
|
||||
<h1>Other examples</h1>
|
||||
<h2>Basic initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../basic_init/zero_config.html">Zero configuration</a></li>
|
||||
<li><a href="../basic_init/filter_only.html">Feature enablement</a></li>
|
||||
<li><a href="../basic_init/table_sorting.html">Sorting data</a></li>
|
||||
<li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li>
|
||||
<li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li>
|
||||
<li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li>
|
||||
<li><a href="../basic_init/dom.html">DOM positioning</a></li>
|
||||
<li><a href="../basic_init/state_save.html">State saving</a></li>
|
||||
<li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li>
|
||||
<li>Scrolling:
|
||||
<a href="../basic_init/scroll_x.html">Horizontal</a> /
|
||||
<a href="../basic_init/scroll_y.html">Vertical</a> /
|
||||
<a href="../basic_init/scroll_xy.html">Both</a> /
|
||||
<a href="../basic_init/scroll_y_theme.html">Themed</a> /
|
||||
<a href="../basic_init/scroll_y_infinite.html">Infinite</a>
|
||||
</li>
|
||||
<li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li>
|
||||
<li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Advanced initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../advanced_init/events_pre_init.html">Events (pre initialisation)</a></li>
|
||||
<li><a href="../advanced_init/events_post_init.html">Events (post initialisation)</a></li>
|
||||
<li><a href="../advanced_init/column_render.html">Column rendering</a></li>
|
||||
<li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li>
|
||||
<li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li>
|
||||
<li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li>
|
||||
<li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li>
|
||||
<li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li>
|
||||
<li><a href="../advanced_init/complex_header.html">Column grouping through col/row spans</a></li>
|
||||
<li><a href="../advanced_init/row_grouping.html">Row grouping</a></li>
|
||||
<li><a href="../advanced_init/row_callback.html">Row callback</a></li>
|
||||
<li><a href="../advanced_init/footer_callback.html">Footer callback</a></li>
|
||||
<li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Data sources</h2>
|
||||
<ul>
|
||||
<li><a href="../data_sources/dom.html">DOM</a></li>
|
||||
<li><a href="../data_sources/js_array.html">Javascript array</a></li>
|
||||
<li><a href="../data_sources/ajax.html">Ajax source</a></li>
|
||||
<li><a href="../data_sources/server_side.html">Server side processing</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Server-side processing</h2>
|
||||
<ul>
|
||||
<li><a href="../server_side/server_side.html">Obtain server-side data</a></li>
|
||||
<li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li>
|
||||
<li><a href="../server_side/post.html">Use HTTP POST</a></li>
|
||||
<li><a href="../server_side/column_ordering.html">Custom column ordering (in callback data)</a></li>
|
||||
<li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li>
|
||||
<li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>API</h2>
|
||||
<ul>
|
||||
<li><a href="../api/add_row.html">Dynamically add a new row</a></li>
|
||||
<li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li>
|
||||
<li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li>
|
||||
<li><a href="../api/highlight.html">Highlight rows and columns</a></li>
|
||||
<li><a href="../api/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li>
|
||||
<li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li>
|
||||
<li><a href="../api/editable.html">Editable rows (with jEditable)</a></li>
|
||||
<li><a href="../api/form.html">Submit form with elements in table</a></li>
|
||||
<li><a href="../api/counter_column.html">Index column (static number column)</a></li>
|
||||
<li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li>
|
||||
<li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li>
|
||||
<li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li>
|
||||
<li><a href="../api/regex.html">Regular expression filtering</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Plug-ins</h2>
|
||||
<ul>
|
||||
<li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li>
|
||||
<li><a href="../plug-ins/sorting_plugin.html">Sorting and type detection</a></li>
|
||||
<li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li>
|
||||
<li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li>
|
||||
<li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li>
|
||||
<li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>Please refer to the <a href="http://www.datatables.net/"><i>DataTables</i> documentation</a> for full information about its API properties and methods.</p>
|
||||
|
||||
|
||||
<div id="footer" style="text-align:center;">
|
||||
<span style="font-size:10px;">DataTables © Allan Jardine 2008-2010</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
173
examples/ajax/null_source.html
Normal file
173
examples/ajax/null_source.html
Normal file
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
|
||||
|
||||
<title>DataTables example</title>
|
||||
<style type="text/css" title="currentStyle">
|
||||
@import "../../media/css/demo_page.css";
|
||||
@import "../../media/css/demo_table.css";
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function() {
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
{ "mDataSource": null }
|
||||
]
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
</head>
|
||||
<body id="dt_example">
|
||||
<div id="container">
|
||||
<div class="full_width big">
|
||||
<i>DataTables</i> AJAX source example
|
||||
</div>
|
||||
|
||||
<h1>Preamble</h1>
|
||||
<p>Although <i>DataTables</i> is built from the principle of progressive enhancement, it is often useful to be able to construct a table from an AJAX source. This can be done in one of two ways - either using the <b>aData</b> initialisation parameter which takes an array of data, or using the <b>sAjaxSource</b> initialisation parameter which will have <i>DataTables</i> go to that source with an XHR call and load data from there. This example shows the latter method in action. <i>DataTables</i> expects an object with an array called "aaData" with the data source.</p>
|
||||
|
||||
<h1>Live example</h1>
|
||||
<div id="dynamic">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%">Rendering engine</th>
|
||||
<th width="25%">Browser</th>
|
||||
<th width="25%">Platform(s)</th>
|
||||
<th width="15%">Engine version</th>
|
||||
<th width="15%">CSS grade</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Platform(s)</th>
|
||||
<th>Engine version</th>
|
||||
<th>CSS grade</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
|
||||
|
||||
<h1>Initialisation code</h1>
|
||||
<pre>$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/arrays.txt"
|
||||
} );
|
||||
} );</pre>
|
||||
|
||||
|
||||
<h1>Other examples</h1>
|
||||
<h2>Basic initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../basic_init/zero_config.html">Zero configuration</a></li>
|
||||
<li><a href="../basic_init/filter_only.html">Feature enablement</a></li>
|
||||
<li><a href="../basic_init/table_sorting.html">Sorting data</a></li>
|
||||
<li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li>
|
||||
<li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li>
|
||||
<li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li>
|
||||
<li><a href="../basic_init/dom.html">DOM positioning</a></li>
|
||||
<li><a href="../basic_init/state_save.html">State saving</a></li>
|
||||
<li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li>
|
||||
<li>Scrolling:
|
||||
<a href="../basic_init/scroll_x.html">Horizontal</a> /
|
||||
<a href="../basic_init/scroll_y.html">Vertical</a> /
|
||||
<a href="../basic_init/scroll_xy.html">Both</a> /
|
||||
<a href="../basic_init/scroll_y_theme.html">Themed</a> /
|
||||
<a href="../basic_init/scroll_y_infinite.html">Infinite</a>
|
||||
</li>
|
||||
<li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li>
|
||||
<li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Advanced initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../advanced_init/events_pre_init.html">Events (pre initialisation)</a></li>
|
||||
<li><a href="../advanced_init/events_post_init.html">Events (post initialisation)</a></li>
|
||||
<li><a href="../advanced_init/column_render.html">Column rendering</a></li>
|
||||
<li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li>
|
||||
<li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li>
|
||||
<li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li>
|
||||
<li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li>
|
||||
<li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li>
|
||||
<li><a href="../advanced_init/complex_header.html">Column grouping through col/row spans</a></li>
|
||||
<li><a href="../advanced_init/row_grouping.html">Row grouping</a></li>
|
||||
<li><a href="../advanced_init/row_callback.html">Row callback</a></li>
|
||||
<li><a href="../advanced_init/footer_callback.html">Footer callback</a></li>
|
||||
<li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Data sources</h2>
|
||||
<ul>
|
||||
<li><a href="../data_sources/dom.html">DOM</a></li>
|
||||
<li><a href="../data_sources/js_array.html">Javascript array</a></li>
|
||||
<li><a href="../data_sources/ajax.html">Ajax source</a></li>
|
||||
<li><a href="../data_sources/server_side.html">Server side processing</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Server-side processing</h2>
|
||||
<ul>
|
||||
<li><a href="../server_side/server_side.html">Obtain server-side data</a></li>
|
||||
<li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li>
|
||||
<li><a href="../server_side/post.html">Use HTTP POST</a></li>
|
||||
<li><a href="../server_side/column_ordering.html">Custom column ordering (in callback data)</a></li>
|
||||
<li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li>
|
||||
<li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>API</h2>
|
||||
<ul>
|
||||
<li><a href="../api/add_row.html">Dynamically add a new row</a></li>
|
||||
<li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li>
|
||||
<li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li>
|
||||
<li><a href="../api/highlight.html">Highlight rows and columns</a></li>
|
||||
<li><a href="../api/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li>
|
||||
<li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li>
|
||||
<li><a href="../api/editable.html">Editable rows (with jEditable)</a></li>
|
||||
<li><a href="../api/form.html">Submit form with elements in table</a></li>
|
||||
<li><a href="../api/counter_column.html">Index column (static number column)</a></li>
|
||||
<li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li>
|
||||
<li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li>
|
||||
<li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li>
|
||||
<li><a href="../api/regex.html">Regular expression filtering</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Plug-ins</h2>
|
||||
<ul>
|
||||
<li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li>
|
||||
<li><a href="../plug-ins/sorting_plugin.html">Sorting and type detection</a></li>
|
||||
<li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li>
|
||||
<li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li>
|
||||
<li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li>
|
||||
<li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>Please refer to the <a href="http://www.datatables.net/"><i>DataTables</i> documentation</a> for full information about its API properties and methods.</p>
|
||||
|
||||
|
||||
<div id="footer" style="text-align:center;">
|
||||
<span style="font-size:10px;">DataTables © Allan Jardine 2008-2010</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
173
examples/ajax/objects.html
Normal file
173
examples/ajax/objects.html
Normal file
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
|
||||
|
||||
<title>DataTables example</title>
|
||||
<style type="text/css" title="currentStyle">
|
||||
@import "../../media/css/demo_page.css";
|
||||
@import "../../media/css/demo_table.css";
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function() {
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/objects.txt",
|
||||
"aoColumns": [
|
||||
{ "mDataSource": "engine" },
|
||||
{ "mDataSource": "browser" },
|
||||
{ "mDataSource": "platform" },
|
||||
{ "mDataSource": "version" },
|
||||
{ "mDataSource": "grade" }
|
||||
]
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
</head>
|
||||
<body id="dt_example">
|
||||
<div id="container">
|
||||
<div class="full_width big">
|
||||
<i>DataTables</i> AJAX source example
|
||||
</div>
|
||||
|
||||
<h1>Preamble</h1>
|
||||
<p>Although <i>DataTables</i> is built from the principle of progressive enhancement, it is often useful to be able to construct a table from an AJAX source. This can be done in one of two ways - either using the <b>aData</b> initialisation parameter which takes an array of data, or using the <b>sAjaxSource</b> initialisation parameter which will have <i>DataTables</i> go to that source with an XHR call and load data from there. This example shows the latter method in action. <i>DataTables</i> expects an object with an array called "aaData" with the data source.</p>
|
||||
|
||||
<h1>Live example</h1>
|
||||
<div id="dynamic">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%">Rendering engine</th>
|
||||
<th width="25%">Browser</th>
|
||||
<th width="25%">Platform(s)</th>
|
||||
<th width="15%">Engine version</th>
|
||||
<th width="15%">CSS grade</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Platform(s)</th>
|
||||
<th>Engine version</th>
|
||||
<th>CSS grade</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
|
||||
|
||||
<h1>Initialisation code</h1>
|
||||
<pre>$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/arrays.txt"
|
||||
} );
|
||||
} );</pre>
|
||||
|
||||
|
||||
<h1>Other examples</h1>
|
||||
<h2>Basic initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../basic_init/zero_config.html">Zero configuration</a></li>
|
||||
<li><a href="../basic_init/filter_only.html">Feature enablement</a></li>
|
||||
<li><a href="../basic_init/table_sorting.html">Sorting data</a></li>
|
||||
<li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li>
|
||||
<li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li>
|
||||
<li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li>
|
||||
<li><a href="../basic_init/dom.html">DOM positioning</a></li>
|
||||
<li><a href="../basic_init/state_save.html">State saving</a></li>
|
||||
<li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li>
|
||||
<li>Scrolling:
|
||||
<a href="../basic_init/scroll_x.html">Horizontal</a> /
|
||||
<a href="../basic_init/scroll_y.html">Vertical</a> /
|
||||
<a href="../basic_init/scroll_xy.html">Both</a> /
|
||||
<a href="../basic_init/scroll_y_theme.html">Themed</a> /
|
||||
<a href="../basic_init/scroll_y_infinite.html">Infinite</a>
|
||||
</li>
|
||||
<li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li>
|
||||
<li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Advanced initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../advanced_init/events_pre_init.html">Events (pre initialisation)</a></li>
|
||||
<li><a href="../advanced_init/events_post_init.html">Events (post initialisation)</a></li>
|
||||
<li><a href="../advanced_init/column_render.html">Column rendering</a></li>
|
||||
<li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li>
|
||||
<li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li>
|
||||
<li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li>
|
||||
<li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li>
|
||||
<li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li>
|
||||
<li><a href="../advanced_init/complex_header.html">Column grouping through col/row spans</a></li>
|
||||
<li><a href="../advanced_init/row_grouping.html">Row grouping</a></li>
|
||||
<li><a href="../advanced_init/row_callback.html">Row callback</a></li>
|
||||
<li><a href="../advanced_init/footer_callback.html">Footer callback</a></li>
|
||||
<li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Data sources</h2>
|
||||
<ul>
|
||||
<li><a href="../data_sources/dom.html">DOM</a></li>
|
||||
<li><a href="../data_sources/js_array.html">Javascript array</a></li>
|
||||
<li><a href="../data_sources/ajax.html">Ajax source</a></li>
|
||||
<li><a href="../data_sources/server_side.html">Server side processing</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Server-side processing</h2>
|
||||
<ul>
|
||||
<li><a href="../server_side/server_side.html">Obtain server-side data</a></li>
|
||||
<li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li>
|
||||
<li><a href="../server_side/post.html">Use HTTP POST</a></li>
|
||||
<li><a href="../server_side/column_ordering.html">Custom column ordering (in callback data)</a></li>
|
||||
<li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li>
|
||||
<li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>API</h2>
|
||||
<ul>
|
||||
<li><a href="../api/add_row.html">Dynamically add a new row</a></li>
|
||||
<li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li>
|
||||
<li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li>
|
||||
<li><a href="../api/highlight.html">Highlight rows and columns</a></li>
|
||||
<li><a href="../api/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li>
|
||||
<li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li>
|
||||
<li><a href="../api/editable.html">Editable rows (with jEditable)</a></li>
|
||||
<li><a href="../api/form.html">Submit form with elements in table</a></li>
|
||||
<li><a href="../api/counter_column.html">Index column (static number column)</a></li>
|
||||
<li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li>
|
||||
<li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li>
|
||||
<li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li>
|
||||
<li><a href="../api/regex.html">Regular expression filtering</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Plug-ins</h2>
|
||||
<ul>
|
||||
<li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li>
|
||||
<li><a href="../plug-ins/sorting_plugin.html">Sorting and type detection</a></li>
|
||||
<li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li>
|
||||
<li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li>
|
||||
<li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li>
|
||||
<li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>Please refer to the <a href="http://www.datatables.net/"><i>DataTables</i> documentation</a> for full information about its API properties and methods.</p>
|
||||
|
||||
|
||||
<div id="footer" style="text-align:center;">
|
||||
<span style="font-size:10px;">DataTables © Allan Jardine 2008-2010</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
176
examples/ajax/objects_subarrays.html
Normal file
176
examples/ajax/objects_subarrays.html
Normal file
@ -0,0 +1,176 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
|
||||
|
||||
<title>DataTables example</title>
|
||||
<style type="text/css" title="currentStyle">
|
||||
@import "../../media/css/demo_page.css";
|
||||
@import "../../media/css/demo_table.css";
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function() {
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/objects_subarrays.txt",
|
||||
"aoColumns": [
|
||||
{ "mDataSource": "engine" },
|
||||
{ "mDataSource": "browser" },
|
||||
{ "mDataSource": "platform" },
|
||||
{ "mDataSource": "details.0" },
|
||||
{ "mDataSource": "details.1" }
|
||||
],
|
||||
"fnInitComplete": function () {
|
||||
oTable.fnUpdate( 'AAAA', $('tbody>tr:eq(0)')[0], 4 );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
</head>
|
||||
<body id="dt_example">
|
||||
<div id="container">
|
||||
<div class="full_width big">
|
||||
<i>DataTables</i> AJAX source example
|
||||
</div>
|
||||
|
||||
<h1>Preamble</h1>
|
||||
<p>Although <i>DataTables</i> is built from the principle of progressive enhancement, it is often useful to be able to construct a table from an AJAX source. This can be done in one of two ways - either using the <b>aData</b> initialisation parameter which takes an array of data, or using the <b>sAjaxSource</b> initialisation parameter which will have <i>DataTables</i> go to that source with an XHR call and load data from there. This example shows the latter method in action. <i>DataTables</i> expects an object with an array called "aaData" with the data source.</p>
|
||||
|
||||
<h1>Live example</h1>
|
||||
<div id="dynamic">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%">Rendering engine</th>
|
||||
<th width="25%">Browser</th>
|
||||
<th width="25%">Platform(s)</th>
|
||||
<th width="15%">Engine version</th>
|
||||
<th width="15%">CSS grade</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Platform(s)</th>
|
||||
<th>Engine version</th>
|
||||
<th>CSS grade</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
|
||||
|
||||
<h1>Initialisation code</h1>
|
||||
<pre>$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"sAjaxSource": "sources/arrays.txt"
|
||||
} );
|
||||
} );</pre>
|
||||
|
||||
|
||||
<h1>Other examples</h1>
|
||||
<h2>Basic initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../basic_init/zero_config.html">Zero configuration</a></li>
|
||||
<li><a href="../basic_init/filter_only.html">Feature enablement</a></li>
|
||||
<li><a href="../basic_init/table_sorting.html">Sorting data</a></li>
|
||||
<li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li>
|
||||
<li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li>
|
||||
<li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li>
|
||||
<li><a href="../basic_init/dom.html">DOM positioning</a></li>
|
||||
<li><a href="../basic_init/state_save.html">State saving</a></li>
|
||||
<li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li>
|
||||
<li>Scrolling:
|
||||
<a href="../basic_init/scroll_x.html">Horizontal</a> /
|
||||
<a href="../basic_init/scroll_y.html">Vertical</a> /
|
||||
<a href="../basic_init/scroll_xy.html">Both</a> /
|
||||
<a href="../basic_init/scroll_y_theme.html">Themed</a> /
|
||||
<a href="../basic_init/scroll_y_infinite.html">Infinite</a>
|
||||
</li>
|
||||
<li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li>
|
||||
<li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Advanced initialisation</h2>
|
||||
<ul>
|
||||
<li><a href="../advanced_init/events_pre_init.html">Events (pre initialisation)</a></li>
|
||||
<li><a href="../advanced_init/events_post_init.html">Events (post initialisation)</a></li>
|
||||
<li><a href="../advanced_init/column_render.html">Column rendering</a></li>
|
||||
<li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li>
|
||||
<li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li>
|
||||
<li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li>
|
||||
<li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li>
|
||||
<li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li>
|
||||
<li><a href="../advanced_init/complex_header.html">Column grouping through col/row spans</a></li>
|
||||
<li><a href="../advanced_init/row_grouping.html">Row grouping</a></li>
|
||||
<li><a href="../advanced_init/row_callback.html">Row callback</a></li>
|
||||
<li><a href="../advanced_init/footer_callback.html">Footer callback</a></li>
|
||||
<li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Data sources</h2>
|
||||
<ul>
|
||||
<li><a href="../data_sources/dom.html">DOM</a></li>
|
||||
<li><a href="../data_sources/js_array.html">Javascript array</a></li>
|
||||
<li><a href="../data_sources/ajax.html">Ajax source</a></li>
|
||||
<li><a href="../data_sources/server_side.html">Server side processing</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Server-side processing</h2>
|
||||
<ul>
|
||||
<li><a href="../server_side/server_side.html">Obtain server-side data</a></li>
|
||||
<li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li>
|
||||
<li><a href="../server_side/post.html">Use HTTP POST</a></li>
|
||||
<li><a href="../server_side/column_ordering.html">Custom column ordering (in callback data)</a></li>
|
||||
<li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li>
|
||||
<li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>API</h2>
|
||||
<ul>
|
||||
<li><a href="../api/add_row.html">Dynamically add a new row</a></li>
|
||||
<li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li>
|
||||
<li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li>
|
||||
<li><a href="../api/highlight.html">Highlight rows and columns</a></li>
|
||||
<li><a href="../api/row_details.html">Show and hide details about a particular record</a></li>
|
||||
<li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li>
|
||||
<li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li>
|
||||
<li><a href="../api/editable.html">Editable rows (with jEditable)</a></li>
|
||||
<li><a href="../api/form.html">Submit form with elements in table</a></li>
|
||||
<li><a href="../api/counter_column.html">Index column (static number column)</a></li>
|
||||
<li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li>
|
||||
<li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li>
|
||||
<li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li>
|
||||
<li><a href="../api/regex.html">Regular expression filtering</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Plug-ins</h2>
|
||||
<ul>
|
||||
<li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li>
|
||||
<li><a href="../plug-ins/sorting_plugin.html">Sorting and type detection</a></li>
|
||||
<li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li>
|
||||
<li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li>
|
||||
<li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li>
|
||||
<li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>Please refer to the <a href="http://www.datatables.net/"><i>DataTables</i> documentation</a> for full information about its API properties and methods.</p>
|
||||
|
||||
|
||||
<div id="footer" style="text-align:center;">
|
||||
<span style="font-size:10px;">DataTables © Allan Jardine 2008-2010</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
515
examples/ajax/sources/arrays_subobjects.txt
Normal file
515
examples/ajax/sources/arrays_subobjects.txt
Normal file
@ -0,0 +1,515 @@
|
||||
{ "aaData": [
|
||||
[
|
||||
"Trident",
|
||||
"Internet Explorer 4.0",
|
||||
"Win 95+",
|
||||
{
|
||||
"version": "4",
|
||||
"grade": "X"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Trident",
|
||||
"Internet Explorer 5.0",
|
||||
"Win 95+",
|
||||
{
|
||||
"version": "5",
|
||||
"grade": "C"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Trident",
|
||||
"Internet Explorer 5.5",
|
||||
"Win 95+",
|
||||
{
|
||||
"version": "5.5",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Trident",
|
||||
"Internet Explorer 6",
|
||||
"Win 98+",
|
||||
{
|
||||
"version": "6",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Trident",
|
||||
"Internet Explorer 7",
|
||||
"Win XP SP2+",
|
||||
{
|
||||
"version": "7",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Trident",
|
||||
"AOL browser (AOL desktop)",
|
||||
"Win XP",
|
||||
{
|
||||
"version": "6",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Firefox 1.0",
|
||||
"Win 98+ / OSX.2+",
|
||||
{
|
||||
"version": "1.7",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Firefox 1.5",
|
||||
"Win 98+ / OSX.2+",
|
||||
{
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Firefox 2.0",
|
||||
"Win 98+ / OSX.2+",
|
||||
{
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Firefox 3.0",
|
||||
"Win 2k+ / OSX.3+",
|
||||
{
|
||||
"version": "1.9",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Camino 1.0",
|
||||
"OSX.2+",
|
||||
{
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Camino 1.5",
|
||||
"OSX.3+",
|
||||
{
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Netscape 7.2",
|
||||
"Win 95+ / Mac OS 8.6-9.2",
|
||||
{
|
||||
"version": "1.7",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Netscape Browser 8",
|
||||
"Win 98SE+",
|
||||
{
|
||||
"version": "1.7",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Netscape Navigator 9",
|
||||
"Win 98+ / OSX.2+",
|
||||
{
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Mozilla 1.0",
|
||||
"Win 95+ / OSX.1+",
|
||||
{
|
||||
"version": "1",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Mozilla 1.1",
|
||||
"Win 95+ / OSX.1+",
|
||||
{
|
||||
"version": "1.1",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Mozilla 1.2",
|
||||
"Win 95+ / OSX.1+",
|
||||
{
|
||||
"version": "1.2",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Mozilla 1.3",
|
||||
"Win 95+ / OSX.1+",
|
||||
{
|
||||
"version": "1.3",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Mozilla 1.4",
|
||||
"Win 95+ / OSX.1+",
|
||||
{
|
||||
"version": "1.4",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Mozilla 1.5",
|
||||
"Win 95+ / OSX.1+",
|
||||
{
|
||||
"version": "1.5",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Mozilla 1.6",
|
||||
"Win 95+ / OSX.1+",
|
||||
{
|
||||
"version": "1.6",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Mozilla 1.7",
|
||||
"Win 98+ / OSX.1+",
|
||||
{
|
||||
"version": "1.7",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Mozilla 1.8",
|
||||
"Win 98+ / OSX.1+",
|
||||
{
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Seamonkey 1.1",
|
||||
"Win 98+ / OSX.2+",
|
||||
{
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Gecko",
|
||||
"Epiphany 2.20",
|
||||
"Gnome",
|
||||
{
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Webkit",
|
||||
"Safari 1.2",
|
||||
"OSX.3",
|
||||
{
|
||||
"version": "125.5",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Webkit",
|
||||
"Safari 1.3",
|
||||
"OSX.3",
|
||||
{
|
||||
"version": "312.8",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Webkit",
|
||||
"Safari 2.0",
|
||||
"OSX.4+",
|
||||
{
|
||||
"version": "419.3",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Webkit",
|
||||
"Safari 3.0",
|
||||
"OSX.4+",
|
||||
{
|
||||
"version": "522.1",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Webkit",
|
||||
"OmniWeb 5.5",
|
||||
"OSX.4+",
|
||||
{
|
||||
"version": "420",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Webkit",
|
||||
"iPod Touch / iPhone",
|
||||
"iPod",
|
||||
{
|
||||
"version": "420.1",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Webkit",
|
||||
"S60",
|
||||
"S60",
|
||||
{
|
||||
"version": "413",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Opera 7.0",
|
||||
"Win 95+ / OSX.1+",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Opera 7.5",
|
||||
"Win 95+ / OSX.2+",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Opera 8.0",
|
||||
"Win 95+ / OSX.2+",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Opera 8.5",
|
||||
"Win 95+ / OSX.2+",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Opera 9.0",
|
||||
"Win 95+ / OSX.3+",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Opera 9.2",
|
||||
"Win 88+ / OSX.3+",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Opera 9.5",
|
||||
"Win 88+ / OSX.3+",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Opera for Wii",
|
||||
"Wii",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Nokia N800",
|
||||
"N800",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Presto",
|
||||
"Nintendo DS browser",
|
||||
"Nintendo DS",
|
||||
{
|
||||
"version": "8.5",
|
||||
"grade": "C/A<sup>1</sup>"
|
||||
}
|
||||
],
|
||||
[
|
||||
"KHTML",
|
||||
"Konqureror 3.1",
|
||||
"KDE 3.1",
|
||||
{
|
||||
"version": "3.1",
|
||||
"grade": "C"
|
||||
}
|
||||
],
|
||||
[
|
||||
"KHTML",
|
||||
"Konqureror 3.3",
|
||||
"KDE 3.3",
|
||||
{
|
||||
"version": "3.3",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"KHTML",
|
||||
"Konqureror 3.5",
|
||||
"KDE 3.5",
|
||||
{
|
||||
"version": "3.5",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Tasman",
|
||||
"Internet Explorer 4.5",
|
||||
"Mac OS 8-9",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "X"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Tasman",
|
||||
"Internet Explorer 5.1",
|
||||
"Mac OS 7.6-9",
|
||||
{
|
||||
"version": "1",
|
||||
"grade": "C"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Tasman",
|
||||
"Internet Explorer 5.2",
|
||||
"Mac OS 8-X",
|
||||
{
|
||||
"version": "1",
|
||||
"grade": "C"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Misc",
|
||||
"NetFront 3.1",
|
||||
"Embedded devices",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "C"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Misc",
|
||||
"NetFront 3.4",
|
||||
"Embedded devices",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Misc",
|
||||
"Dillo 0.8",
|
||||
"Embedded devices",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "X"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Misc",
|
||||
"Links",
|
||||
"Text only",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "X"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Misc",
|
||||
"Lynx",
|
||||
"Text only",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "X"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Misc",
|
||||
"IE Mobile",
|
||||
"Windows Mobile 6",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "C"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Misc",
|
||||
"PSP browser",
|
||||
"PSP",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "C"
|
||||
}
|
||||
],
|
||||
[
|
||||
"Other browsers",
|
||||
"All others",
|
||||
"-",
|
||||
{
|
||||
"version": "-",
|
||||
"grade": "U"
|
||||
}
|
||||
]
|
||||
] }
|
629
examples/ajax/sources/deep.txt
Normal file
629
examples/ajax/sources/deep.txt
Normal file
@ -0,0 +1,629 @@
|
||||
{ "aaData": [
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 4.0",
|
||||
"platform": {
|
||||
"inner": "Win 95+",
|
||||
"details": [
|
||||
"4",
|
||||
"X"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 5.0",
|
||||
"platform": {
|
||||
"inner": "Win 95+",
|
||||
"details": [
|
||||
"5",
|
||||
"C"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 5.5",
|
||||
"platform": {
|
||||
"inner": "Win 95+",
|
||||
"details": [
|
||||
"5.5",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 6",
|
||||
"platform": {
|
||||
"inner": "Win 98+",
|
||||
"details": [
|
||||
"6",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 7",
|
||||
"platform": {
|
||||
"inner": "Win XP SP2+",
|
||||
"details": [
|
||||
"7",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "AOL browser (AOL desktop)",
|
||||
"platform": {
|
||||
"inner": "Win XP",
|
||||
"details": [
|
||||
"6",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 1.0",
|
||||
"platform": {
|
||||
"inner": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.7",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 1.5",
|
||||
"platform": {
|
||||
"inner": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 2.0",
|
||||
"platform": {
|
||||
"inner": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 3.0",
|
||||
"platform": {
|
||||
"inner": "Win 2k+ / OSX.3+",
|
||||
"details": [
|
||||
"1.9",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Camino 1.0",
|
||||
"platform": {
|
||||
"inner": "OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Camino 1.5",
|
||||
"platform": {
|
||||
"inner": "OSX.3+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Netscape 7.2",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / Mac OS 8.6-9.2",
|
||||
"details": [
|
||||
"1.7",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Netscape Browser 8",
|
||||
"platform": {
|
||||
"inner": "Win 98SE+",
|
||||
"details": [
|
||||
"1.7",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Netscape Navigator 9",
|
||||
"platform": {
|
||||
"inner": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.0",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1,
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.1",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.1,
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.2",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.2,
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.3",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.3,
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.4",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.4,
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.5",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.5,
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.6",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.6,
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.7",
|
||||
"platform": {
|
||||
"inner": "Win 98+ / OSX.1+",
|
||||
"details": [
|
||||
1.7,
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.8",
|
||||
"platform": {
|
||||
"inner": "Win 98+ / OSX.1+",
|
||||
"details": [
|
||||
1.8,
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Seamonkey 1.1",
|
||||
"platform": {
|
||||
"inner": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Epiphany 2.20",
|
||||
"platform": {
|
||||
"inner": "Gnome",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 1.2",
|
||||
"platform": {
|
||||
"inner": "OSX.3",
|
||||
"details": [
|
||||
"125.5",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 1.3",
|
||||
"platform": {
|
||||
"inner": "OSX.3",
|
||||
"details": [
|
||||
"312.8",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 2.0",
|
||||
"platform": {
|
||||
"inner": "OSX.4+",
|
||||
"details": [
|
||||
"419.3",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 3.0",
|
||||
"platform": {
|
||||
"inner": "OSX.4+",
|
||||
"details": [
|
||||
"522.1",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "OmniWeb 5.5",
|
||||
"platform": {
|
||||
"inner": "OSX.4+",
|
||||
"details": [
|
||||
"420",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "iPod Touch / iPhone",
|
||||
"platform": {
|
||||
"inner": "iPod",
|
||||
"details": [
|
||||
"420.1",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "S60",
|
||||
"platform": {
|
||||
"inner": "S60",
|
||||
"details": [
|
||||
"413",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 7.0",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 7.5",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.2+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 8.0",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.2+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 8.5",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.2+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 9.0",
|
||||
"platform": {
|
||||
"inner": "Win 95+ / OSX.3+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 9.2",
|
||||
"platform": {
|
||||
"inner": "Win 88+ / OSX.3+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 9.5",
|
||||
"platform": {
|
||||
"inner": "Win 88+ / OSX.3+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera for Wii",
|
||||
"platform": {
|
||||
"inner": "Wii",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Nokia N800",
|
||||
"platform": {
|
||||
"inner": "N800",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Nintendo DS browser",
|
||||
"platform": {
|
||||
"inner": "Nintendo DS",
|
||||
"details": [
|
||||
"8.5",
|
||||
"C/A<sup>1</sup>"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "KHTML",
|
||||
"browser": "Konqureror 3.1",
|
||||
"platform": {
|
||||
"inner": "KDE 3.1",
|
||||
"details": [
|
||||
"3.1",
|
||||
"C"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "KHTML",
|
||||
"browser": "Konqureror 3.3",
|
||||
"platform": {
|
||||
"inner": "KDE 3.3",
|
||||
"details": [
|
||||
"3.3",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "KHTML",
|
||||
"browser": "Konqureror 3.5",
|
||||
"platform": {
|
||||
"inner": "KDE 3.5",
|
||||
"details": [
|
||||
"3.5",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Tasman",
|
||||
"browser": "Internet Explorer 4.5",
|
||||
"platform": {
|
||||
"inner": "Mac OS 8-9",
|
||||
"details": [
|
||||
"-",
|
||||
"X"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Tasman",
|
||||
"browser": "Internet Explorer 5.1",
|
||||
"platform": {
|
||||
"inner": "Mac OS 7.6-9",
|
||||
"details": [
|
||||
"1",
|
||||
"C"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Tasman",
|
||||
"browser": "Internet Explorer 5.2",
|
||||
"platform": {
|
||||
"inner": "Mac OS 8-X",
|
||||
"details": [
|
||||
"1",
|
||||
"C"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "NetFront 3.1",
|
||||
"platform": {
|
||||
"inner": "Embedded devices",
|
||||
"details": [
|
||||
"-",
|
||||
"C"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "NetFront 3.4",
|
||||
"platform": {
|
||||
"inner": "Embedded devices",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "Dillo 0.8",
|
||||
"platform": {
|
||||
"inner": "Embedded devices",
|
||||
"details": [
|
||||
"-",
|
||||
"X"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "Links",
|
||||
"platform": {
|
||||
"inner": "Text only",
|
||||
"details": [
|
||||
"-",
|
||||
"X"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "Lynx",
|
||||
"platform": {
|
||||
"inner": "Text only",
|
||||
"details": [
|
||||
"-",
|
||||
"X"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "IE Mobile",
|
||||
"platform": {
|
||||
"inner": "Windows Mobile 6",
|
||||
"details": [
|
||||
"-",
|
||||
"C"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "PSP browser",
|
||||
"platform": {
|
||||
"inner": "PSP",
|
||||
"details": [
|
||||
"-",
|
||||
"C"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"engine": "Other browsers",
|
||||
"browser": "All others",
|
||||
"platform": {
|
||||
"inner": "-",
|
||||
"details": [
|
||||
"-",
|
||||
"U"
|
||||
]
|
||||
}
|
||||
}
|
||||
] }
|
401
examples/ajax/sources/objects.txt
Normal file
401
examples/ajax/sources/objects.txt
Normal file
@ -0,0 +1,401 @@
|
||||
{ "aaData": [
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 4.0",
|
||||
"platform": "Win 95+",
|
||||
"version": "4",
|
||||
"grade": "X"
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 5.0",
|
||||
"platform": "Win 95+",
|
||||
"version": "5",
|
||||
"grade": "C"
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 5.5",
|
||||
"platform": "Win 95+",
|
||||
"version": "5.5",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 6",
|
||||
"platform": "Win 98+",
|
||||
"version": "6",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 7",
|
||||
"platform": "Win XP SP2+",
|
||||
"version": "7",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "AOL browser (AOL desktop)",
|
||||
"platform": "Win XP",
|
||||
"version": "6",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 1.0",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"version": "1.7",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 1.5",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 2.0",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 3.0",
|
||||
"platform": "Win 2k+ / OSX.3+",
|
||||
"version": "1.9",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Camino 1.0",
|
||||
"platform": "OSX.2+",
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Camino 1.5",
|
||||
"platform": "OSX.3+",
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Netscape 7.2",
|
||||
"platform": "Win 95+ / Mac OS 8.6-9.2",
|
||||
"version": "1.7",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Netscape Browser 8",
|
||||
"platform": "Win 98SE+",
|
||||
"version": "1.7",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Netscape Navigator 9",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.0",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"version": "1",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.1",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"version": "1.1",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.2",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"version": "1.2",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.3",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"version": "1.3",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.4",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"version": "1.4",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.5",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"version": "1.5",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.6",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"version": "1.6",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.7",
|
||||
"platform": "Win 98+ / OSX.1+",
|
||||
"version": "1.7",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.8",
|
||||
"platform": "Win 98+ / OSX.1+",
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Seamonkey 1.1",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Epiphany 2.20",
|
||||
"platform": "Gnome",
|
||||
"version": "1.8",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 1.2",
|
||||
"platform": "OSX.3",
|
||||
"version": "125.5",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 1.3",
|
||||
"platform": "OSX.3",
|
||||
"version": "312.8",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 2.0",
|
||||
"platform": "OSX.4+",
|
||||
"version": "419.3",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 3.0",
|
||||
"platform": "OSX.4+",
|
||||
"version": "522.1",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "OmniWeb 5.5",
|
||||
"platform": "OSX.4+",
|
||||
"version": "420",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "iPod Touch / iPhone",
|
||||
"platform": "iPod",
|
||||
"version": "420.1",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "S60",
|
||||
"platform": "S60",
|
||||
"version": "413",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 7.0",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 7.5",
|
||||
"platform": "Win 95+ / OSX.2+",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 8.0",
|
||||
"platform": "Win 95+ / OSX.2+",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 8.5",
|
||||
"platform": "Win 95+ / OSX.2+",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 9.0",
|
||||
"platform": "Win 95+ / OSX.3+",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 9.2",
|
||||
"platform": "Win 88+ / OSX.3+",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 9.5",
|
||||
"platform": "Win 88+ / OSX.3+",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera for Wii",
|
||||
"platform": "Wii",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Nokia N800",
|
||||
"platform": "N800",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Nintendo DS browser",
|
||||
"platform": "Nintendo DS",
|
||||
"version": "8.5",
|
||||
"grade": "C/A<sup>1</sup>"
|
||||
},
|
||||
{
|
||||
"engine": "KHTML",
|
||||
"browser": "Konqureror 3.1",
|
||||
"platform": "KDE 3.1",
|
||||
"version": "3.1",
|
||||
"grade": "C"
|
||||
},
|
||||
{
|
||||
"engine": "KHTML",
|
||||
"browser": "Konqureror 3.3",
|
||||
"platform": "KDE 3.3",
|
||||
"version": "3.3",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "KHTML",
|
||||
"browser": "Konqureror 3.5",
|
||||
"platform": "KDE 3.5",
|
||||
"version": "3.5",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Tasman",
|
||||
"browser": "Internet Explorer 4.5",
|
||||
"platform": "Mac OS 8-9",
|
||||
"version": "-",
|
||||
"grade": "X"
|
||||
},
|
||||
{
|
||||
"engine": "Tasman",
|
||||
"browser": "Internet Explorer 5.1",
|
||||
"platform": "Mac OS 7.6-9",
|
||||
"version": "1",
|
||||
"grade": "C"
|
||||
},
|
||||
{
|
||||
"engine": "Tasman",
|
||||
"browser": "Internet Explorer 5.2",
|
||||
"platform": "Mac OS 8-X",
|
||||
"version": "1",
|
||||
"grade": "C"
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "NetFront 3.1",
|
||||
"platform": "Embedded devices",
|
||||
"version": "-",
|
||||
"grade": "C"
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "NetFront 3.4",
|
||||
"platform": "Embedded devices",
|
||||
"version": "-",
|
||||
"grade": "A"
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "Dillo 0.8",
|
||||
"platform": "Embedded devices",
|
||||
"version": "-",
|
||||
"grade": "X"
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "Links",
|
||||
"platform": "Text only",
|
||||
"version": "-",
|
||||
"grade": "X"
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "Lynx",
|
||||
"platform": "Text only",
|
||||
"version": "-",
|
||||
"grade": "X"
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "IE Mobile",
|
||||
"platform": "Windows Mobile 6",
|
||||
"version": "-",
|
||||
"grade": "C"
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "PSP browser",
|
||||
"platform": "PSP",
|
||||
"version": "-",
|
||||
"grade": "C"
|
||||
},
|
||||
{
|
||||
"engine": "Other browsers",
|
||||
"browser": "All others",
|
||||
"platform": "-",
|
||||
"version": "-",
|
||||
"grade": "U"
|
||||
}
|
||||
] }
|
515
examples/ajax/sources/objects_subarrays.txt
Normal file
515
examples/ajax/sources/objects_subarrays.txt
Normal file
@ -0,0 +1,515 @@
|
||||
{ "aaData": [
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 4.0",
|
||||
"platform": "Win 95+",
|
||||
"details": [
|
||||
"4",
|
||||
"X"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 5.0",
|
||||
"platform": "Win 95+",
|
||||
"details": [
|
||||
"5",
|
||||
"C"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 5.5",
|
||||
"platform": "Win 95+",
|
||||
"details": [
|
||||
"5.5",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 6",
|
||||
"platform": "Win 98+",
|
||||
"details": [
|
||||
"6",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "Internet Explorer 7",
|
||||
"platform": "Win XP SP2+",
|
||||
"details": [
|
||||
"7",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Trident",
|
||||
"browser": "AOL browser (AOL desktop)",
|
||||
"platform": "Win XP",
|
||||
"details": [
|
||||
"6",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 1.0",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.7",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 1.5",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 2.0",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Firefox 3.0",
|
||||
"platform": "Win 2k+ / OSX.3+",
|
||||
"details": [
|
||||
"1.9",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Camino 1.0",
|
||||
"platform": "OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Camino 1.5",
|
||||
"platform": "OSX.3+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Netscape 7.2",
|
||||
"platform": "Win 95+ / Mac OS 8.6-9.2",
|
||||
"details": [
|
||||
"1.7",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Netscape Browser 8",
|
||||
"platform": "Win 98SE+",
|
||||
"details": [
|
||||
"1.7",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Netscape Navigator 9",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.0",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1,
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.1",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.1,
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.2",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.2,
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.3",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.3,
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.4",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.4,
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.5",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.5,
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.6",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
1.6,
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.7",
|
||||
"platform": "Win 98+ / OSX.1+",
|
||||
"details": [
|
||||
1.7,
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Mozilla 1.8",
|
||||
"platform": "Win 98+ / OSX.1+",
|
||||
"details": [
|
||||
1.8,
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Seamonkey 1.1",
|
||||
"platform": "Win 98+ / OSX.2+",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Gecko",
|
||||
"browser": "Epiphany 2.20",
|
||||
"platform": "Gnome",
|
||||
"details": [
|
||||
"1.8",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 1.2",
|
||||
"platform": "OSX.3",
|
||||
"details": [
|
||||
"125.5",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 1.3",
|
||||
"platform": "OSX.3",
|
||||
"details": [
|
||||
"312.8",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 2.0",
|
||||
"platform": "OSX.4+",
|
||||
"details": [
|
||||
"419.3",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "Safari 3.0",
|
||||
"platform": "OSX.4+",
|
||||
"details": [
|
||||
"522.1",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "OmniWeb 5.5",
|
||||
"platform": "OSX.4+",
|
||||
"details": [
|
||||
"420",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "iPod Touch / iPhone",
|
||||
"platform": "iPod",
|
||||
"details": [
|
||||
"420.1",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Webkit",
|
||||
"browser": "S60",
|
||||
"platform": "S60",
|
||||
"details": [
|
||||
"413",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 7.0",
|
||||
"platform": "Win 95+ / OSX.1+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 7.5",
|
||||
"platform": "Win 95+ / OSX.2+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 8.0",
|
||||
"platform": "Win 95+ / OSX.2+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 8.5",
|
||||
"platform": "Win 95+ / OSX.2+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 9.0",
|
||||
"platform": "Win 95+ / OSX.3+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 9.2",
|
||||
"platform": "Win 88+ / OSX.3+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera 9.5",
|
||||
"platform": "Win 88+ / OSX.3+",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Opera for Wii",
|
||||
"platform": "Wii",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Nokia N800",
|
||||
"platform": "N800",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Presto",
|
||||
"browser": "Nintendo DS browser",
|
||||
"platform": "Nintendo DS",
|
||||
"details": [
|
||||
"8.5",
|
||||
"C/A<sup>1</sup>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "KHTML",
|
||||
"browser": "Konqureror 3.1",
|
||||
"platform": "KDE 3.1",
|
||||
"details": [
|
||||
"3.1",
|
||||
"C"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "KHTML",
|
||||
"browser": "Konqureror 3.3",
|
||||
"platform": "KDE 3.3",
|
||||
"details": [
|
||||
"3.3",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "KHTML",
|
||||
"browser": "Konqureror 3.5",
|
||||
"platform": "KDE 3.5",
|
||||
"details": [
|
||||
"3.5",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Tasman",
|
||||
"browser": "Internet Explorer 4.5",
|
||||
"platform": "Mac OS 8-9",
|
||||
"details": [
|
||||
"-",
|
||||
"X"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Tasman",
|
||||
"browser": "Internet Explorer 5.1",
|
||||
"platform": "Mac OS 7.6-9",
|
||||
"details": [
|
||||
"1",
|
||||
"C"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Tasman",
|
||||
"browser": "Internet Explorer 5.2",
|
||||
"platform": "Mac OS 8-X",
|
||||
"details": [
|
||||
"1",
|
||||
"C"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "NetFront 3.1",
|
||||
"platform": "Embedded devices",
|
||||
"details": [
|
||||
"-",
|
||||
"C"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "NetFront 3.4",
|
||||
"platform": "Embedded devices",
|
||||
"details": [
|
||||
"-",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "Dillo 0.8",
|
||||
"platform": "Embedded devices",
|
||||
"details": [
|
||||
"-",
|
||||
"X"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "Links",
|
||||
"platform": "Text only",
|
||||
"details": [
|
||||
"-",
|
||||
"X"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "Lynx",
|
||||
"platform": "Text only",
|
||||
"details": [
|
||||
"-",
|
||||
"X"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "IE Mobile",
|
||||
"platform": "Windows Mobile 6",
|
||||
"details": [
|
||||
"-",
|
||||
"C"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Misc",
|
||||
"browser": "PSP browser",
|
||||
"platform": "PSP",
|
||||
"details": [
|
||||
"-",
|
||||
"C"
|
||||
]
|
||||
},
|
||||
{
|
||||
"engine": "Other browsers",
|
||||
"browser": "All others",
|
||||
"platform": "-",
|
||||
"details": [
|
||||
"-",
|
||||
"U"
|
||||
]
|
||||
}
|
||||
] }
|
@ -17,7 +17,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php"
|
||||
"sAjaxSource": "../server_side/scripts/server_processing.php"
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
@ -68,7 +68,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php"
|
||||
"sAjaxSource": "../server_side/scripts/server_processing.php"
|
||||
} );
|
||||
} );</pre>
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
{ "aaData": [
|
||||
[ "ALLAN", "Internet Explorer 4.0", "Win 95+", 4, "X" ],
|
||||
[ "Trident", "Internet Explorer 5.0", "Win 95+", 5, "C" ],
|
||||
[ "Trident", "Internet Explorer 5.5", "Win 95+", 5.5, "A" ],
|
||||
[ "Trident", "Internet Explorer 6.0", "Win 98+", 6, "A" ],
|
||||
[ "Trident", "Internet Explorer 7.0", "Win XP SP2+", 7, "A" ],
|
||||
[ "Gecko", "Firefox 1.5", "Win 98+ / OSX.2+", 1.8, "A" ],
|
||||
[ "Gecko", "Firefox 2", "Win 98+ / OSX.2+", 1.8, "A" ],
|
||||
[ "Gecko", "Firefox 3", "Win 2k+ / OSX.3+", 1.9, "A" ],
|
||||
[ "Webkit", "Safari 1.2", "OSX.3", 125.5, "A" ],
|
||||
[ "Webkit", "Safari 1.3", "OSX.3", 312.8, "A" ],
|
||||
[ "Webkit", "Safari 2.0", "OSX.4+", 419.3, "A" ],
|
||||
[ "Webkit", "Safari 3.0", "OSX.4+", 522.1, "A" ]
|
||||
] }
|
@ -1,14 +1,47 @@
|
||||
<?php
|
||||
/* MySQL connection */
|
||||
include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" ); /* ;-) */
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Easy set variables
|
||||
*/
|
||||
|
||||
/* Array of database columns which should be read and sent back to DataTables. Use a space where
|
||||
* you want to insert a non-database field (for example a counter or static image)
|
||||
*/
|
||||
$aColumns = array( 'engine', 'browser', 'platform', 'version', 'grade' );
|
||||
|
||||
/* Indexed column (used for fast and accurate table cardinality) */
|
||||
$sIndexColumn = "id";
|
||||
|
||||
/* DB table to use */
|
||||
$sTable = "ajax";
|
||||
|
||||
/* Database connection information */
|
||||
$gaSql['user'] = "";
|
||||
$gaSql['password'] = "";
|
||||
$gaSql['db'] = "";
|
||||
$gaSql['server'] = "localhost";
|
||||
|
||||
/* REMOVE THIS LINE (it just includes my SQL connection user/pass) */
|
||||
include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" );
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* If you just want to use the basic configuration for DataTables with PHP server-side, there is
|
||||
* no need to edit below this line
|
||||
*/
|
||||
|
||||
/*
|
||||
* MySQL connection
|
||||
*/
|
||||
$gaSql['link'] = mysql_pconnect( $gaSql['server'], $gaSql['user'], $gaSql['password'] ) or
|
||||
die( 'Could not open connection to server' );
|
||||
|
||||
mysql_select_db( $gaSql['db'], $gaSql['link'] ) or
|
||||
die( 'Could not select database '. $gaSql['db'] );
|
||||
|
||||
/* Paging */
|
||||
|
||||
/*
|
||||
* Paging
|
||||
*/
|
||||
$sLimit = "";
|
||||
if ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )
|
||||
{
|
||||
@ -16,38 +49,81 @@
|
||||
mysql_real_escape_string( $_GET['iDisplayLength'] );
|
||||
}
|
||||
|
||||
/* Ordering */
|
||||
|
||||
/*
|
||||
* Ordering
|
||||
*/
|
||||
$sOrder = "";
|
||||
if ( isset( $_GET['iSortCol_0'] ) )
|
||||
{
|
||||
$sOrder = "ORDER BY ";
|
||||
for ( $i=0 ; $i<mysql_real_escape_string( $_GET['iSortingCols'] ) ; $i++ )
|
||||
for ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )
|
||||
{
|
||||
$sOrder .= fnColumnToField(mysql_real_escape_string( $_GET['iSortCol_'.$i] ))."
|
||||
".mysql_real_escape_string( $_GET['sSortDir_'.$i] ) .", ";
|
||||
if ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == "true" )
|
||||
{
|
||||
$sOrder .= $aColumns[ intval( $_GET['iSortCol_'.$i] ) ]."
|
||||
".mysql_real_escape_string( $_GET['sSortDir_'.$i] ) .", ";
|
||||
}
|
||||
}
|
||||
|
||||
$sOrder = substr_replace( $sOrder, "", -2 );
|
||||
if ( $sOrder == "ORDER BY" )
|
||||
{
|
||||
$sOrder = "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Filtering */
|
||||
|
||||
/*
|
||||
* Filtering
|
||||
* NOTE this does not match the built-in DataTables filtering which does it
|
||||
* word by word on any field. It's possible to do here, but concerned about efficiency
|
||||
* on very large tables, and MySQL's regex functionality is very limited
|
||||
*/
|
||||
$sWhere = "";
|
||||
if ( $_GET['sSearch'] != "" )
|
||||
if ( isset($_GET['sSearch']) && $_GET['sSearch'] != "" )
|
||||
{
|
||||
$sWhere = "WHERE engine LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ".
|
||||
"browser LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ".
|
||||
"platform LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ".
|
||||
"version LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ".
|
||||
"grade LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%'";
|
||||
$sWhere = "WHERE (";
|
||||
for ( $i=0 ; $i<count($aColumns) ; $i++ )
|
||||
{
|
||||
$sWhere .= $aColumns[$i]." LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ";
|
||||
}
|
||||
$sWhere = substr_replace( $sWhere, "", -3 );
|
||||
$sWhere .= ')';
|
||||
}
|
||||
|
||||
/* Individual column filtering */
|
||||
for ( $i=0 ; $i<count($aColumns) ; $i++ )
|
||||
{
|
||||
if ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == "true" && $_GET['sSearch_'.$i] != '' )
|
||||
{
|
||||
if ( $sWhere == "" )
|
||||
{
|
||||
$sWhere = "WHERE ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$sWhere .= " AND ";
|
||||
}
|
||||
$sWhere .= $aColumns[$i]." LIKE '%".mysql_real_escape_string($_GET['sSearch_'.$i])."%' ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* SQL queries
|
||||
* Get data to display
|
||||
*/
|
||||
$sQuery = "
|
||||
SELECT SQL_CALC_FOUND_ROWS id, engine, browser, platform, version, grade
|
||||
FROM ajax
|
||||
SELECT SQL_CALC_FOUND_ROWS ".str_replace(" , ", " ", implode(", ", $aColumns))."
|
||||
FROM $sTable
|
||||
$sWhere
|
||||
$sOrder
|
||||
$sLimit
|
||||
";
|
||||
$rResult = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error());
|
||||
|
||||
/* Data set length after filtering */
|
||||
$sQuery = "
|
||||
SELECT FOUND_ROWS()
|
||||
";
|
||||
@ -55,52 +131,49 @@
|
||||
$aResultFilterTotal = mysql_fetch_array($rResultFilterTotal);
|
||||
$iFilteredTotal = $aResultFilterTotal[0];
|
||||
|
||||
/* Total data set length */
|
||||
$sQuery = "
|
||||
SELECT COUNT(id)
|
||||
FROM ajax
|
||||
SELECT COUNT(".$sIndexColumn.")
|
||||
FROM $sTable
|
||||
";
|
||||
$rResultTotal = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error());
|
||||
$aResultTotal = mysql_fetch_array($rResultTotal);
|
||||
$iTotal = $aResultTotal[0];
|
||||
|
||||
|
||||
$sOutput = '{';
|
||||
$sOutput .= '"sEcho": '.intval($_GET['sEcho']).', ';
|
||||
$sOutput .= '"iTotalRecords": '.$iTotal.', ';
|
||||
$sOutput .= '"iTotalDisplayRecords": '.$iFilteredTotal.', ';
|
||||
$sOutput .= '"aaData": [ ';
|
||||
/*
|
||||
* Output
|
||||
*/
|
||||
$output = array(
|
||||
"sEcho" => intval($_GET['sEcho']),
|
||||
"iTotalRecords" => $iTotal,
|
||||
"iTotalDisplayRecords" => $iFilteredTotal,
|
||||
"aaData" => array()
|
||||
);
|
||||
|
||||
while ( $aRow = mysql_fetch_array( $rResult ) )
|
||||
{
|
||||
$sOutput .= "[";
|
||||
$sOutput .= '"<img src=\"../examples_support/details_open.png\">",';
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['engine']).'",';
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['browser']).'",';
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['platform']).'",';
|
||||
if ( $aRow['version'] == "0" )
|
||||
$sOutput .= '"-",';
|
||||
else
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['version']).'",';
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['grade']).'"';
|
||||
$sOutput .= "],";
|
||||
$row = array();
|
||||
|
||||
/* Add the details image at the start of the display array */
|
||||
$row[] = '<img src="../examples_support/details_open.png">';
|
||||
|
||||
for ( $i=0 ; $i<count($aColumns) ; $i++ )
|
||||
{
|
||||
if ( $aColumns[$i] == "version" )
|
||||
{
|
||||
/* Special output formatting for 'version' column */
|
||||
$row[] = ($aRow[ $aColumns[$i] ]=="0") ? '-' : $aRow[ $aColumns[$i] ];
|
||||
}
|
||||
else if ( $aColumns[$i] != ' ' )
|
||||
{
|
||||
/* General output */
|
||||
$row[] = $aRow[ $aColumns[$i] ];
|
||||
}
|
||||
}
|
||||
$row['extra'] = 'hrmll';
|
||||
$output['aaData'][] = $row;
|
||||
}
|
||||
$sOutput = substr_replace( $sOutput, "", -1 );
|
||||
$sOutput .= '] }';
|
||||
|
||||
echo $sOutput;
|
||||
|
||||
|
||||
function fnColumnToField( $i )
|
||||
{
|
||||
/* Note that column 0 is the details column */
|
||||
if ( $i == 0 ||$i == 1 )
|
||||
return "engine";
|
||||
else if ( $i == 2 )
|
||||
return "browser";
|
||||
else if ( $i == 3 )
|
||||
return "platform";
|
||||
else if ( $i == 4 )
|
||||
return "version";
|
||||
else if ( $i == 5 )
|
||||
return "grade";
|
||||
}
|
||||
echo json_encode( $output );
|
||||
?>
|
@ -1,14 +1,47 @@
|
||||
<?php
|
||||
/* MySQL connection */
|
||||
include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" ); /* ;-) */
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Easy set variables
|
||||
*/
|
||||
|
||||
/* Array of database columns which should be read and sent back to DataTables. Use a space where
|
||||
* you want to insert a non-database field (for example a counter or static image)
|
||||
*/
|
||||
$aColumns = array( 'engine', 'browser', 'platform', 'version', 'grade' );
|
||||
|
||||
/* Indexed column (used for fast and accurate table cardinality) */
|
||||
$sIndexColumn = "id";
|
||||
|
||||
/* DB table to use */
|
||||
$sTable = "ajax";
|
||||
|
||||
/* Database connection information */
|
||||
$gaSql['user'] = "";
|
||||
$gaSql['password'] = "";
|
||||
$gaSql['db'] = "";
|
||||
$gaSql['server'] = "localhost";
|
||||
|
||||
/* REMOVE THIS LINE (it just includes my SQL connection user/pass) */
|
||||
include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" );
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* If you just want to use the basic configuration for DataTables with PHP server-side, there is
|
||||
* no need to edit below this line
|
||||
*/
|
||||
|
||||
/*
|
||||
* MySQL connection
|
||||
*/
|
||||
$gaSql['link'] = mysql_pconnect( $gaSql['server'], $gaSql['user'], $gaSql['password'] ) or
|
||||
die( 'Could not open connection to server' );
|
||||
|
||||
mysql_select_db( $gaSql['db'], $gaSql['link'] ) or
|
||||
die( 'Could not select database '. $gaSql['db'] );
|
||||
|
||||
/* Paging */
|
||||
|
||||
/*
|
||||
* Paging
|
||||
*/
|
||||
$sLimit = "";
|
||||
if ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )
|
||||
{
|
||||
@ -16,41 +49,81 @@
|
||||
mysql_real_escape_string( $_GET['iDisplayLength'] );
|
||||
}
|
||||
|
||||
/* Ordering */
|
||||
|
||||
/*
|
||||
* Ordering
|
||||
*/
|
||||
$sOrder = "";
|
||||
if ( isset( $_GET['iSortCol_0'] ) )
|
||||
{
|
||||
$sOrder = "ORDER BY ";
|
||||
for ( $i=0 ; $i<mysql_real_escape_string( $_GET['iSortingCols'] ) ; $i++ )
|
||||
for ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )
|
||||
{
|
||||
$sOrder .= fnColumnToField(mysql_real_escape_string( $_GET['iSortCol_'.$i] ))."
|
||||
".mysql_real_escape_string( $_GET['sSortDir_'.$i] ) .", ";
|
||||
if ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == "true" )
|
||||
{
|
||||
$sOrder .= $aColumns[ intval( $_GET['iSortCol_'.$i] ) ]."
|
||||
".mysql_real_escape_string( $_GET['sSortDir_'.$i] ) .", ";
|
||||
}
|
||||
}
|
||||
|
||||
$sOrder = substr_replace( $sOrder, "", -2 );
|
||||
if ( $sOrder == "ORDER BY" )
|
||||
{
|
||||
$sOrder = "";
|
||||
}
|
||||
}
|
||||
|
||||
/* Filtering - NOTE this does not match the built-in DataTables filtering which does it
|
||||
|
||||
/*
|
||||
* Filtering
|
||||
* NOTE this does not match the built-in DataTables filtering which does it
|
||||
* word by word on any field. It's possible to do here, but concerned about efficiency
|
||||
* on very large tables, and MySQL's regex functionality is very limited
|
||||
*/
|
||||
$sWhere = "";
|
||||
if ( $_GET['sSearch'] != "" )
|
||||
if ( isset($_GET['sSearch']) && $_GET['sSearch'] != "" )
|
||||
{
|
||||
$sWhere = "WHERE engine LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ".
|
||||
"browser LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ".
|
||||
"platform LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ".
|
||||
"version LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ".
|
||||
"grade LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%'";
|
||||
$sWhere = "WHERE (";
|
||||
for ( $i=0 ; $i<count($aColumns) ; $i++ )
|
||||
{
|
||||
$sWhere .= $aColumns[$i]." LIKE '%".mysql_real_escape_string( $_GET['sSearch'] )."%' OR ";
|
||||
}
|
||||
$sWhere = substr_replace( $sWhere, "", -3 );
|
||||
$sWhere .= ')';
|
||||
}
|
||||
|
||||
/* Individual column filtering */
|
||||
for ( $i=0 ; $i<count($aColumns) ; $i++ )
|
||||
{
|
||||
if ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == "true" && $_GET['sSearch_'.$i] != '' )
|
||||
{
|
||||
if ( $sWhere == "" )
|
||||
{
|
||||
$sWhere = "WHERE ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$sWhere .= " AND ";
|
||||
}
|
||||
$sWhere .= $aColumns[$i]." LIKE '%".mysql_real_escape_string($_GET['sSearch_'.$i])."%' ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* SQL queries
|
||||
* Get data to display
|
||||
*/
|
||||
$sQuery = "
|
||||
SELECT SQL_CALC_FOUND_ROWS id, engine, browser, platform, version, grade
|
||||
FROM ajax
|
||||
SELECT SQL_CALC_FOUND_ROWS id, ".str_replace(" , ", " ", implode(", ", $aColumns))."
|
||||
FROM $sTable
|
||||
$sWhere
|
||||
$sOrder
|
||||
$sLimit
|
||||
";
|
||||
$rResult = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error());
|
||||
|
||||
/* Data set length after filtering */
|
||||
$sQuery = "
|
||||
SELECT FOUND_ROWS()
|
||||
";
|
||||
@ -58,50 +131,48 @@
|
||||
$aResultFilterTotal = mysql_fetch_array($rResultFilterTotal);
|
||||
$iFilteredTotal = $aResultFilterTotal[0];
|
||||
|
||||
/* Total data set length */
|
||||
$sQuery = "
|
||||
SELECT COUNT(id)
|
||||
FROM ajax
|
||||
SELECT COUNT(".$sIndexColumn.")
|
||||
FROM $sTable
|
||||
";
|
||||
$rResultTotal = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error());
|
||||
$aResultTotal = mysql_fetch_array($rResultTotal);
|
||||
$iTotal = $aResultTotal[0];
|
||||
|
||||
$sOutput = '{';
|
||||
$sOutput .= '"sEcho": '.intval($_GET['sEcho']).', ';
|
||||
$sOutput .= '"iTotalRecords": '.$iTotal.', ';
|
||||
$sOutput .= '"iTotalDisplayRecords": '.$iFilteredTotal.', ';
|
||||
$sOutput .= '"aaData": [ ';
|
||||
|
||||
/*
|
||||
* Output
|
||||
*/
|
||||
$output = array(
|
||||
"sEcho" => intval($_GET['sEcho']),
|
||||
"iTotalRecords" => $iTotal,
|
||||
"iTotalDisplayRecords" => $iFilteredTotal,
|
||||
"aaData" => array()
|
||||
);
|
||||
|
||||
while ( $aRow = mysql_fetch_array( $rResult ) )
|
||||
{
|
||||
$sOutput .= "[";
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['id']).'",';
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['engine']).'",';
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['browser']).'",';
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['platform']).'",';
|
||||
if ( $aRow['version'] == "0" )
|
||||
$sOutput .= '"-",';
|
||||
else
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['version']).'",';
|
||||
$sOutput .= '"'.str_replace('"', '\"', $aRow['grade']).'"';
|
||||
$sOutput .= "],";
|
||||
$row = array();
|
||||
|
||||
// Add the row ID to the object
|
||||
$row['DT_RowId'] = 'row_'.$aRow['id'];
|
||||
|
||||
for ( $i=0 ; $i<count($aColumns) ; $i++ )
|
||||
{
|
||||
if ( $aColumns[$i] == "version" )
|
||||
{
|
||||
/* Special output formatting for 'version' column */
|
||||
$row[] = ($aRow[ $aColumns[$i] ]=="0") ? '-' : $aRow[ $aColumns[$i] ];
|
||||
}
|
||||
else if ( $aColumns[$i] != ' ' )
|
||||
{
|
||||
/* General output */
|
||||
$row[] = $aRow[ $aColumns[$i] ];
|
||||
}
|
||||
}
|
||||
$output['aaData'][] = $row;
|
||||
}
|
||||
$sOutput = substr_replace( $sOutput, "", -1 );
|
||||
$sOutput .= '] }';
|
||||
|
||||
echo $sOutput;
|
||||
|
||||
|
||||
function fnColumnToField( $i )
|
||||
{
|
||||
if ( $i == 0 )
|
||||
return "engine";
|
||||
else if ( $i == 1 )
|
||||
return "browser";
|
||||
else if ( $i == 2 )
|
||||
return "platform";
|
||||
else if ( $i == 3 )
|
||||
return "version";
|
||||
else if ( $i == 4 )
|
||||
return "grade";
|
||||
}
|
||||
echo json_encode( $output );
|
||||
?>
|
@ -12,46 +12,31 @@
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
|
||||
<script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var oTable;
|
||||
var gaiSelected = [];
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#form').submit( function() {
|
||||
alert (gaiSelected);
|
||||
return false;
|
||||
} );
|
||||
|
||||
var aSelected = [];
|
||||
|
||||
/* Init the table */
|
||||
oTable = $("#example").dataTable({
|
||||
$("#example").dataTable({
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "scripts/id.php",
|
||||
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
|
||||
if ( jQuery.inArray(aData[0], gaiSelected) != -1 )
|
||||
{
|
||||
if ( jQuery.inArray(aData.DT_RowId, aSelected) !== -1 ) {
|
||||
$(nRow).addClass('row_selected');
|
||||
}
|
||||
return nRow;
|
||||
},
|
||||
"aoColumnDefs": [
|
||||
{ "bVisible": 0, "aTargets": [0] }
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
/* Click event handler */
|
||||
$('#example tbody tr').live('click', function () {
|
||||
var aData = oTable.fnGetData( this );
|
||||
var iId = aData[0];
|
||||
var id = this.id;
|
||||
var index = jQuery.inArray(id, aSelected);
|
||||
|
||||
if ( jQuery.inArray(iId, gaiSelected) == -1 )
|
||||
{
|
||||
gaiSelected[gaiSelected.length++] = iId;
|
||||
}
|
||||
else
|
||||
{
|
||||
gaiSelected = jQuery.grep(gaiSelected, function(value) {
|
||||
return value != iId;
|
||||
} );
|
||||
if ( index === -1 ) {
|
||||
aSelected.push( id );
|
||||
} else {
|
||||
aSelected.splice( index, 1 );
|
||||
}
|
||||
|
||||
$(this).toggleClass('row_selected');
|
||||
@ -66,15 +51,13 @@ $(document).ready(function() {
|
||||
</div>
|
||||
|
||||
<h1>Preamble</h1>
|
||||
<p>When you want to detail with user selectable rows and DataTables, it is relatively simple when using DOM based data - but if using server-side processing, DataTables doesn't retain state over pages / filters etc, leaving this to the server-side instead. As such, you will need to keep a track of which rows a user as selected and mark them as selected on each draw. This is shown in this demo, which uses a unique ID in the first (and hidden) column.</p>
|
||||
<p>Credit for this example belongs with forum member <a href="http://datatables.net/forums/comments.php?DiscussionID=582&page=1#Item_4">iuliandum</a>. Thanks!</p>
|
||||
<p>When you want to detail with user selectable rows and DataTables, it is relatively simple when using DOM based data - but if using server-side processing, DataTables doesn't retain state over pages / filters etc, leaving this to the server-side instead. As such, you will need to keep a track of which rows a user as selected and mark them as selected on each draw. This is shown in this demo, which uses a unique ID assigned to the TR element (this is done automatically through the use of the <i>DT_RowId</i> special property returned as part of the object given by the server for each row).</p>
|
||||
|
||||
<h1>Live example</h1>
|
||||
<div id="dynamic">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="0%">ID</th>
|
||||
<th width="20%">Rendering engine</th>
|
||||
<th width="25%">Browser</th>
|
||||
<th width="25%">Platform(s)</th>
|
||||
@ -89,7 +72,6 @@ $(document).ready(function() {
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Platform(s)</th>
|
||||
@ -103,46 +85,31 @@ $(document).ready(function() {
|
||||
|
||||
|
||||
<h1>Initialisation code</h1>
|
||||
<pre>var oTable;
|
||||
var gaiSelected = [];
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#form').submit( function() {
|
||||
alert (gaiSelected);
|
||||
return false;
|
||||
} );
|
||||
|
||||
<pre>$(document).ready(function() {
|
||||
var aSelected = [];
|
||||
|
||||
/* Init the table */
|
||||
oTable = $("#example").dataTable({
|
||||
$("#example").dataTable({
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "scripts/id.php",
|
||||
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
|
||||
if ( jQuery.inArray(aData[0], gaiSelected) != -1 )
|
||||
{
|
||||
if ( jQuery.inArray(aData.DT_RowId, aSelected) !== -1 ) {
|
||||
$(nRow).addClass('row_selected');
|
||||
}
|
||||
return nRow;
|
||||
},
|
||||
"aoColumns": [
|
||||
{ "bVisible": 0, "aTargets": [0] }
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
/* Click event handler */
|
||||
$('#example tbody tr').live('click', function () {
|
||||
var aData = oTable.fnGetData( this );
|
||||
var iId = aData[0];
|
||||
var id = this.id;
|
||||
var index = jQuery.inArray(id, aSelected);
|
||||
|
||||
if ( jQuery.inArray(iId, gaiSelected) == -1 )
|
||||
{
|
||||
gaiSelected[gaiSelected.length++] = iId;
|
||||
}
|
||||
else
|
||||
{
|
||||
gaiSelected = jQuery.grep(gaiSelected, function(value) {
|
||||
return value != iId;
|
||||
} );
|
||||
if ( index === -1 ) {
|
||||
aSelected.push( id );
|
||||
} else {
|
||||
aSelected.splice( index, 1 );
|
||||
}
|
||||
|
||||
$(this).toggleClass('row_selected');
|
||||
|
345
media/js/jquery.dataTables.js
vendored
345
media/js/jquery.dataTables.js
vendored
@ -711,12 +711,12 @@
|
||||
* Function: -
|
||||
* Purpose: Check to see if a string is numeric
|
||||
* Returns: string:'numeric' or null
|
||||
* Inputs: string:sText - string to check
|
||||
* Inputs: mixed:sText - string to check
|
||||
*/
|
||||
function ( sData )
|
||||
{
|
||||
/* Allow zero length strings as a number */
|
||||
if ( sData.length === 0 )
|
||||
if ( typeof sData == 'number' || sData.length === 0 )
|
||||
{
|
||||
return 'numeric';
|
||||
}
|
||||
@ -780,7 +780,7 @@
|
||||
*/
|
||||
function ( sData )
|
||||
{
|
||||
if ( sData.indexOf('<') != -1 && sData.indexOf('>') != -1 )
|
||||
if ( typeof sData == 'string' && sData.indexOf('<') != -1 && sData.indexOf('>') != -1 )
|
||||
{
|
||||
return 'html';
|
||||
}
|
||||
@ -1793,8 +1793,9 @@
|
||||
{
|
||||
var iRow = (typeof mRow == 'object') ?
|
||||
_fnNodeToDataIndex(oSettings, mRow) : mRow;
|
||||
|
||||
return (typeof oSettings.aoData[iRow] != 'undefined') ?
|
||||
oSettings.aoData[iRow]._aData : null;
|
||||
_fnGetRowData( oSettings, iRow, '' ) : null;
|
||||
}
|
||||
return _fnGetDataMaster( oSettings );
|
||||
};
|
||||
@ -1882,7 +1883,8 @@
|
||||
if ( typeof mData != 'object' )
|
||||
{
|
||||
sDisplay = mData;
|
||||
oSettings.aoData[iRow]._aData[iColumn] = sDisplay;
|
||||
|
||||
_fnSetCellData( oSettings, iRow, iColumn, sDisplay );
|
||||
|
||||
if ( oSettings.aoColumns[iColumn].fnRender !== null )
|
||||
{
|
||||
@ -1895,7 +1897,7 @@
|
||||
|
||||
if ( oSettings.aoColumns[iColumn].bUseRendered )
|
||||
{
|
||||
oSettings.aoData[iRow]._aData[iColumn] = sDisplay;
|
||||
_fnSetCellData( oSettings, iRow, iColumn, sDisplay );
|
||||
}
|
||||
}
|
||||
|
||||
@ -1922,7 +1924,7 @@
|
||||
for ( var i=0 ; i<mData.length ; i++ )
|
||||
{
|
||||
sDisplay = mData[i];
|
||||
oSettings.aoData[iRow]._aData[i] = sDisplay;
|
||||
_fnSetCellData( oSettings, iRow, i, sDisplay );
|
||||
|
||||
if ( oSettings.aoColumns[i].fnRender !== null )
|
||||
{
|
||||
@ -1935,7 +1937,7 @@
|
||||
|
||||
if ( oSettings.aoColumns[i].bUseRendered )
|
||||
{
|
||||
oSettings.aoData[iRow]._aData[i] = sDisplay;
|
||||
_fnSetCellData( oSettings, iRow, i, sDisplay );
|
||||
}
|
||||
}
|
||||
|
||||
@ -1957,7 +1959,7 @@
|
||||
*/
|
||||
var iDisplayIndex = $.inArray( iRow, oSettings.aiDisplay );
|
||||
oSettings.asDataSearch[iDisplayIndex] = _fnBuildSearchRow( oSettings,
|
||||
oSettings.aoData[iRow]._aData );
|
||||
_fnGetRowData( oSettings, iRow, 'filter' ) );
|
||||
|
||||
/* Perform pre-draw actions */
|
||||
if ( typeof bAction == 'undefined' || bAction )
|
||||
@ -2445,7 +2447,8 @@
|
||||
*/
|
||||
function _fnAddColumn( oSettings, nTh )
|
||||
{
|
||||
oSettings.aoColumns[ oSettings.aoColumns.length++ ] = {
|
||||
var iCol = oSettings.aoColumns.length;
|
||||
var oCol = {
|
||||
"sType": null,
|
||||
"_bAutoType": true,
|
||||
"bVisible": true,
|
||||
@ -2461,13 +2464,14 @@
|
||||
"sClass": null,
|
||||
"fnRender": null,
|
||||
"bUseRendered": true,
|
||||
"iDataSort": oSettings.aoColumns.length-1,
|
||||
"iDataSort": iCol,
|
||||
"mDataSource": iCol,
|
||||
"fnGetData": null,
|
||||
"fnSetData": null,
|
||||
"sSortDataType": 'std',
|
||||
"nTh": nTh ? nTh : document.createElement('th')
|
||||
};
|
||||
|
||||
var iCol = oSettings.aoColumns.length-1;
|
||||
var oCol = oSettings.aoColumns[ iCol ];
|
||||
oSettings.aoColumns.push( oCol );
|
||||
|
||||
/* Add a column specific filter */
|
||||
if ( typeof oSettings.aoPreSearchCols[ iCol ] == 'undefined' ||
|
||||
@ -2491,7 +2495,7 @@
|
||||
{
|
||||
oSettings.aoPreSearchCols[ iCol ].bSmart = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Use the column options function to initialise classes etc */
|
||||
_fnColumnOptions( oSettings, iCol, null );
|
||||
@ -2529,9 +2533,14 @@
|
||||
_fnMap( oCol, oOptions, "fnRender" );
|
||||
_fnMap( oCol, oOptions, "bUseRendered" );
|
||||
_fnMap( oCol, oOptions, "iDataSort" );
|
||||
_fnMap( oCol, oOptions, "mDataSource" );
|
||||
_fnMap( oCol, oOptions, "asSorting" );
|
||||
_fnMap( oCol, oOptions, "sSortDataType" );
|
||||
}
|
||||
|
||||
/* Cache the data get and set functions for speed */
|
||||
oCol.fnGetData = _fnGetObjectDataFn( oCol.mDataSource );
|
||||
oCol.fnSetData = _fnSetObjectDataFn( oCol.mDataSource );
|
||||
|
||||
/* Feature sorting overrides column specific when off */
|
||||
if ( !oSettings.oFeatures.bSort )
|
||||
@ -2570,103 +2579,99 @@
|
||||
*/
|
||||
function _fnAddData ( oSettings, aDataSupplied )
|
||||
{
|
||||
/* Sanity check the length of the new array */
|
||||
if ( aDataSupplied.length != oSettings.aoColumns.length &&
|
||||
oSettings.iDrawError != oSettings.iDraw )
|
||||
{
|
||||
_fnLog( oSettings, 0, "Added data (size "+aDataSupplied.length+") does not match known "+
|
||||
"number of columns ("+oSettings.aoColumns.length+")" );
|
||||
oSettings.iDrawError = oSettings.iDraw;
|
||||
return -1;
|
||||
}
|
||||
var oCol;
|
||||
|
||||
/* Take an independent copy of the data source so we can bash it about as we wish */
|
||||
var aDataIn = (typeof aDataSupplied.length == 'number') ?
|
||||
aDataSupplied.slice() :
|
||||
$.extend( true, {}, aDataSupplied );
|
||||
|
||||
/* Create the object for storing information about this new row */
|
||||
var aData = aDataSupplied.slice();
|
||||
var iThisIndex = oSettings.aoData.length;
|
||||
oSettings.aoData.push( {
|
||||
var iRow = oSettings.aoData.length;
|
||||
var oData = {
|
||||
"nTr": document.createElement('tr'),
|
||||
"_iId": oSettings.iNextId++,
|
||||
"_aData": aData,
|
||||
"_aData": aDataIn,
|
||||
"_anHidden": [],
|
||||
"_sRowStripe": ''
|
||||
} );
|
||||
|
||||
"_sRowStripe": ""
|
||||
};
|
||||
oSettings.aoData.push( oData );
|
||||
|
||||
/* Special parameters can be given by the data source to be used on the row */
|
||||
if ( typeof aDataIn.DT_RowId != 'undefined' )
|
||||
{
|
||||
oData.nTr.setAttribute( 'id', aDataIn.DT_RowId );
|
||||
}
|
||||
|
||||
if ( typeof aDataIn.DT_RowClass != 'undefined' )
|
||||
{
|
||||
$(oData.nTr).addClass( aDataIn.DT_RowClass );
|
||||
}
|
||||
|
||||
/* Create the cells */
|
||||
var nTd, sThisType;
|
||||
for ( var i=0 ; i<aData.length ; i++ )
|
||||
for ( var i=0 ; i<oSettings.aoColumns.length ; i++ )
|
||||
{
|
||||
var oCol = oSettings.aoColumns[i];
|
||||
nTd = document.createElement('td');
|
||||
|
||||
/* Allow null data (from a data array) - simply deal with it as a blank string */
|
||||
if ( aData[i] === null )
|
||||
|
||||
/* Pre-render if needed */
|
||||
if ( typeof oCol.fnRender == 'function' )
|
||||
{
|
||||
aData[i] = '';
|
||||
}
|
||||
|
||||
if ( typeof oSettings.aoColumns[i].fnRender == 'function' )
|
||||
{
|
||||
var sRendered = oSettings.aoColumns[i].fnRender( {
|
||||
"iDataRow": iThisIndex,
|
||||
"iDataColumn": i,
|
||||
"aData": aData,
|
||||
"oSettings": oSettings
|
||||
} );
|
||||
var sRendered = oCol.fnRender( {
|
||||
"iDataRow": iRow,
|
||||
"iDataColumn": i,
|
||||
"aData": aDataIn,
|
||||
"oSettings": oSettings
|
||||
} );
|
||||
nTd.innerHTML = sRendered;
|
||||
if ( oSettings.aoColumns[i].bUseRendered )
|
||||
if ( oCol.bUseRendered )
|
||||
{
|
||||
/* Use the rendered data for filtering/sorting */
|
||||
oSettings.aoData[iThisIndex]._aData[i] = sRendered;
|
||||
_fnSetCellData( oSettings, iRow, i, sRendered );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
nTd.innerHTML = aData[i];
|
||||
nTd.innerHTML = _fnGetCellData( oSettings, iRow, i, '' );
|
||||
}
|
||||
|
||||
/* Cast everything as a string - so we can treat everything equally when sorting */
|
||||
if ( typeof aData[i] != 'string' )
|
||||
{
|
||||
aData[i] += "";
|
||||
}
|
||||
aData[i] = $.trim(aData[i]);
|
||||
|
||||
/* Add user defined class */
|
||||
if ( oSettings.aoColumns[i].sClass !== null )
|
||||
if ( oCol.sClass !== null )
|
||||
{
|
||||
nTd.className = oSettings.aoColumns[i].sClass;
|
||||
nTd.className = oCol.sClass;
|
||||
}
|
||||
|
||||
/* See if we should auto-detect the column type */
|
||||
if ( oSettings.aoColumns[i]._bAutoType && oSettings.aoColumns[i].sType != 'string' )
|
||||
if ( oCol._bAutoType && oCol.sType != 'string' )
|
||||
{
|
||||
/* Attempt to auto detect the type - same as _fnGatherData() */
|
||||
sThisType = _fnDetectType( oSettings.aoData[iThisIndex]._aData[i] );
|
||||
if ( oSettings.aoColumns[i].sType === null )
|
||||
sThisType = _fnDetectType( _fnGetCellData( oSettings, iRow, i, 'type' ) );
|
||||
if ( oCol.sType === null )
|
||||
{
|
||||
oSettings.aoColumns[i].sType = sThisType;
|
||||
oCol.sType = sThisType;
|
||||
}
|
||||
else if ( oSettings.aoColumns[i].sType != sThisType )
|
||||
else if ( oCol.sType != sThisType )
|
||||
{
|
||||
/* String is always the 'fallback' option */
|
||||
oSettings.aoColumns[i].sType = 'string';
|
||||
oCol.sType = 'string';
|
||||
}
|
||||
}
|
||||
|
||||
if ( oSettings.aoColumns[i].bVisible )
|
||||
if ( oCol.bVisible )
|
||||
{
|
||||
oSettings.aoData[iThisIndex].nTr.appendChild( nTd );
|
||||
oSettings.aoData[iThisIndex]._anHidden[i] = null;
|
||||
oData.nTr.appendChild( nTd );
|
||||
oData._anHidden[i] = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
oSettings.aoData[iThisIndex]._anHidden[i] = nTd;
|
||||
oData._anHidden[i] = nTd;
|
||||
}
|
||||
}
|
||||
|
||||
/* Add to the display array */
|
||||
oSettings.aiDisplayMaster.push( iThisIndex );
|
||||
return iThisIndex;
|
||||
oSettings.aiDisplayMaster.push( iRow );
|
||||
return iRow;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -2705,8 +2710,6 @@
|
||||
} );
|
||||
|
||||
oSettings.aiDisplayMaster.push( iThisIndex );
|
||||
|
||||
aLocalData = oSettings.aoData[iThisIndex]._aData;
|
||||
nTds = nTrs[i].childNodes;
|
||||
jInner = 0;
|
||||
|
||||
@ -2714,7 +2717,7 @@
|
||||
{
|
||||
if ( nTds[j].nodeName.toUpperCase() == "TD" )
|
||||
{
|
||||
aLocalData[jInner] = $.trim(nTds[j].innerHTML);
|
||||
_fnSetCellData( oSettings, iThisIndex, jInner, $.trim(nTds[j].innerHTML) );
|
||||
jInner++;
|
||||
}
|
||||
}
|
||||
@ -2777,7 +2780,7 @@
|
||||
{
|
||||
if ( oSettings.aoColumns[iColumn].sType != 'string' )
|
||||
{
|
||||
sThisType = _fnDetectType( oSettings.aoData[iRow]._aData[iColumn] );
|
||||
sThisType = _fnDetectType( _fnGetCellData( oSettings, iRow, iColumn, 'type' ) );
|
||||
if ( oSettings.aoColumns[iColumn].sType === null )
|
||||
{
|
||||
oSettings.aoColumns[iColumn].sType = sThisType;
|
||||
@ -2803,7 +2806,7 @@
|
||||
if ( oSettings.aoColumns[iColumn].bUseRendered )
|
||||
{
|
||||
/* Use the rendered data for filtering/sorting */
|
||||
oSettings.aoData[iRow]._aData[iColumn] = sRendered;
|
||||
_fnSetCellData( oSettings, iRow, iColumn, sRendered );
|
||||
}
|
||||
}
|
||||
|
||||
@ -4121,7 +4124,7 @@
|
||||
var iDisIndex = oSettings.aiDisplay[j-iCorrector];
|
||||
|
||||
/* Check if we should use this row based on the filtering function */
|
||||
if ( !afnFilters[i]( oSettings, oSettings.aoData[iDisIndex]._aData, iDisIndex ) )
|
||||
if ( !afnFilters[i]( oSettings, _fnGetRowData( oSettings, iDisIndex, 'filter' ), iDisIndex ) )
|
||||
{
|
||||
oSettings.aiDisplay.splice( j-iCorrector, 1 );
|
||||
iCorrector++;
|
||||
@ -4152,7 +4155,7 @@
|
||||
|
||||
for ( var i=oSettings.aiDisplay.length-1 ; i>=0 ; i-- )
|
||||
{
|
||||
var sData = _fnDataToSearch( oSettings.aoData[ oSettings.aiDisplay[i] ]._aData[iColumn],
|
||||
var sData = _fnDataToSearch( _fnGetCellData( oSettings, oSettings.aiDisplay[i], iColumn, 'filter' ),
|
||||
oSettings.aoColumns[iColumn].sType );
|
||||
if ( ! rpSearch.test( sData ) )
|
||||
{
|
||||
@ -4265,8 +4268,8 @@
|
||||
|
||||
for ( var i=0, iLen=aArray.length ; i<iLen ; i++ )
|
||||
{
|
||||
oSettings.asDataSearch[i] = _fnBuildSearchRow( oSettings,
|
||||
oSettings.aoData[ aArray[i] ]._aData );
|
||||
oSettings.asDataSearch[i] = _fnBuildSearchRow( oSettings,
|
||||
_fnGetRowData( oSettings, aArray[i], 'filter' ) );
|
||||
}
|
||||
}
|
||||
|
||||
@ -4275,7 +4278,7 @@
|
||||
* Purpose: Create a searchable string from a single data row
|
||||
* Returns: -
|
||||
* Inputs: object:oSettings - dataTables settings object
|
||||
* array:aData - aoData[]._aData array to use for the data to search
|
||||
* array:aData - Row data array to use for the data to search
|
||||
*/
|
||||
function _fnBuildSearchRow( oSettings, aData )
|
||||
{
|
||||
@ -4409,7 +4412,7 @@
|
||||
var aData = _oExt.afnSortData[sDataType]( oSettings, iColumn, iVisColumn );
|
||||
for ( j=0, jLen=aoData.length ; j<jLen ; j++ )
|
||||
{
|
||||
aoData[j]._aData[iColumn] = aData[j];
|
||||
_fnSetCellData( oSettings, j, iColumn, aData[j] );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4447,8 +4450,8 @@
|
||||
iDataSort = aoColumns[ aaSort[i][0] ].iDataSort;
|
||||
iDataType = aoColumns[ iDataSort ].sType;
|
||||
iTest = oSort[ iDataType+"-"+aaSort[i][1] ](
|
||||
aoData[a]._aData[iDataSort],
|
||||
aoData[b]._aData[iDataSort]
|
||||
_fnGetCellData( oSettings, a, iDataSort, 'sort' ),
|
||||
_fnGetCellData( oSettings, b, iDataSort, 'sort' )
|
||||
);
|
||||
|
||||
if ( iTest !== 0 )
|
||||
@ -5526,7 +5529,7 @@
|
||||
|
||||
for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
|
||||
{
|
||||
n.innerHTML = oSettings.aoData[i]._aData[iCol];
|
||||
n.innerHTML = _fnGetCellData( oSettings, i, iCol, '' );
|
||||
if ( n.offsetWidth > iMax )
|
||||
{
|
||||
iMax = n.offsetWidth;
|
||||
@ -5561,7 +5564,7 @@
|
||||
|
||||
for ( var i=0 ; i<oSettings.aoData.length ; i++ )
|
||||
{
|
||||
var s = oSettings.aoData[i]._aData[iCol];
|
||||
var s = _fnGetCellData( oSettings, i, iCol, '' );
|
||||
if ( s.length > iMax )
|
||||
{
|
||||
iMax = s.length;
|
||||
@ -6338,6 +6341,178 @@
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Function: _fnGetRowData
|
||||
* Purpose: Get an array of data for a given row from the internal data cache
|
||||
* Returns: array: - Data array
|
||||
* Inputs: object:oSettings - dataTables settings object
|
||||
* int:iRow - aoData row id
|
||||
* string:sSpecific - data get type ('type' 'filter' 'sort')
|
||||
*/
|
||||
function _fnGetRowData( oSettings, iRow, sSpecific )
|
||||
{
|
||||
var out = [];
|
||||
for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
||||
{
|
||||
out.push( _fnGetCellData( oSettings, iRow, i, sSpecific ) );
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
/*
|
||||
* Function: _fnGetCellData
|
||||
* Purpose: Get the data for a given cell from the internal cache, taking into account data mapping
|
||||
* Returns: *: - Cell data
|
||||
* Inputs: object:oSettings - dataTables settings object
|
||||
* int:iRow - aoData row id
|
||||
* int:iCol - Column index
|
||||
* string:sSpecific - data get type ('type' 'filter' 'sort')
|
||||
*/
|
||||
function _fnGetCellData( oSettings, iRow, iCol, sSpecific )
|
||||
{
|
||||
var sData;
|
||||
var oCol = oSettings.aoColumns[iCol];
|
||||
var oData = oSettings.aoData[iRow]._aData;
|
||||
|
||||
if ( (sData=oCol.fnGetData( oData )) == undefined )
|
||||
{
|
||||
if ( oSettings.iDrawError != oSettings.iDraw )
|
||||
{
|
||||
_fnLog( oSettings, 0, "Requested unknown parameter '"+oCol.mDataSource+
|
||||
"' from the data source for row "+iRow );
|
||||
oSettings.iDrawError = oSettings.iDraw;
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
return sData;
|
||||
}
|
||||
|
||||
/*
|
||||
* Function: _fnSetCellData
|
||||
* Purpose: Set the value for a specific cell, into the internal data cache
|
||||
* Returns: *: - Cell data
|
||||
* Inputs: object:oSettings - dataTables settings object
|
||||
* int:iRow - aoData row id
|
||||
* int:iCol - Column index
|
||||
* *:val - Value to set
|
||||
*/
|
||||
function _fnSetCellData( oSettings, iRow, iCol, val )
|
||||
{
|
||||
var oCol = oSettings.aoColumns[iCol];
|
||||
var oData = oSettings.aoData[iRow]._aData;
|
||||
|
||||
oCol.fnSetData( oData, val );
|
||||
}
|
||||
|
||||
/*
|
||||
* Function: _fnGetObjectDataFn
|
||||
* Purpose: Return a function that can be used to get data from a source object, taking
|
||||
* into account the ability to use nested objects as a source
|
||||
* Returns: function: - Data get function
|
||||
* Inputs: string:sSource - The data source for the object
|
||||
*/
|
||||
function _fnGetObjectDataFn( sSource )
|
||||
{
|
||||
if ( sSource === null )
|
||||
{
|
||||
/* Give an empty string for rendering / sorting etc */
|
||||
return function (data) {
|
||||
return '';
|
||||
};
|
||||
}
|
||||
else if ( typeof sSource == 'string' && sSource.indexOf('.') != -1 )
|
||||
{
|
||||
/* If there is a . in the source string then the data source is in a nested object
|
||||
* we provide two 'quick' functions for the look up to speed up the most common
|
||||
* operation, and a generalised one for when it is needed
|
||||
*/
|
||||
var a = sSource.split('.');
|
||||
if ( a.length == 2 )
|
||||
{
|
||||
return function (data) {
|
||||
return data[ a[0] ][ a[1] ];
|
||||
};
|
||||
}
|
||||
else if ( a.length == 3 )
|
||||
{
|
||||
return function (data) {
|
||||
return data[ a[0] ][ a[1] ][ a[2] ];
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
return function (data) {
|
||||
for ( var i=0, iLen=a.length ; i<iLen ; i++ )
|
||||
{
|
||||
data = data[ a[i] ];
|
||||
}
|
||||
return data;
|
||||
};
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Array or flat object mapping */
|
||||
return function (data) {
|
||||
return data[sSource];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Function: _fnSetObjectDataFn
|
||||
* Purpose: Return a function that can be used to set data from a source object, taking
|
||||
* into account the ability to use nested objects as a source
|
||||
* Returns: function: - Data set function
|
||||
* Inputs: string:sSource - The data source for the object
|
||||
*/
|
||||
function _fnSetObjectDataFn( sSource )
|
||||
{
|
||||
if ( sSource === null )
|
||||
{
|
||||
/* Nothing to do when the data source is null */
|
||||
return function (data, val) {};
|
||||
}
|
||||
else if ( typeof sSource == 'string' && sSource.indexOf('.') != -1 )
|
||||
{
|
||||
/* Like the get, we need to get data from a nested object. Again two fast lookup
|
||||
* functions are provided, and a generalised one.
|
||||
*/
|
||||
var a = sSource.split('.');
|
||||
if ( a.length == 2 )
|
||||
{
|
||||
return function (data, val) {
|
||||
data[ a[0] ][ a[1] ] = val;
|
||||
}
|
||||
}
|
||||
else if ( a.length == 3 )
|
||||
{
|
||||
return function (data, val) {
|
||||
data[ a[0] ][ a[1] ][ a[2] ] = val;
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
return function (data, val) {
|
||||
for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
|
||||
{
|
||||
data = data[ a[i] ];
|
||||
}
|
||||
data[ a[a.length-1] ] = val;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Array or flat object mapping */
|
||||
return function (data, val) {
|
||||
data[sSource] = val;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Section - API
|
||||
*
|
||||
|
6
media/js/jquery.js
vendored
6
media/js/jquery.js
vendored
File diff suppressed because one or more lines are too long
@ -21,7 +21,7 @@ oTest.fnTest(
|
||||
|
||||
$(document).ready( function () {
|
||||
var oInit = {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
};
|
||||
$('#example').dataTable( oInit );
|
||||
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "aaSorting" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -37,7 +37,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['1','asc']]
|
||||
} );
|
||||
},
|
||||
@ -50,7 +50,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['1','desc']]
|
||||
} );
|
||||
},
|
||||
@ -63,7 +63,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['1','asc']]
|
||||
} );
|
||||
},
|
||||
@ -76,7 +76,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['1','desc']]
|
||||
} );
|
||||
},
|
||||
@ -89,7 +89,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['0','asc'], ['1','asc']]
|
||||
} );
|
||||
},
|
||||
@ -101,7 +101,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['0','asc'], ['1','desc']]
|
||||
} );
|
||||
},
|
||||
@ -113,7 +113,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['0','desc'], ['1','asc']]
|
||||
} );
|
||||
},
|
||||
@ -125,7 +125,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['0','desc'], ['1','desc']]
|
||||
} );
|
||||
},
|
||||
@ -138,7 +138,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['0','asc'], ['3','asc']]
|
||||
} );
|
||||
},
|
||||
@ -150,7 +150,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['0','asc'], ['3','desc']]
|
||||
} );
|
||||
},
|
||||
@ -162,7 +162,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['0','desc'], ['3','asc']]
|
||||
} );
|
||||
},
|
||||
@ -174,7 +174,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['0','desc'], ['3','desc']]
|
||||
} );
|
||||
},
|
||||
@ -186,7 +186,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSorting": [['0','asc'], ['3','asc'], ['1','asc']]
|
||||
} );
|
||||
},
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "aaSortingFixed" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -22,7 +22,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSortingFixed": [['0','asc']],
|
||||
"fnInitComplete": function () {
|
||||
$('#example thead th:eq(1)').click();
|
||||
@ -46,7 +46,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aaSortingFixed": [['3','asc']]
|
||||
} );
|
||||
$('#example thead th:eq(1)').click();
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "aoColumns.bSeachable" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -24,7 +24,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "bSearchable": false },
|
||||
@ -50,7 +50,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
{ "bSearchable": false },
|
||||
{ "bSearchable": false },
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "aoColumns.bSortable" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -19,7 +19,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "bSortable": false },
|
||||
@ -53,7 +53,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "bSortable": false },
|
||||
|
@ -10,7 +10,7 @@ $(document).ready( function () {
|
||||
var mTmp = 0;
|
||||
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -39,7 +39,7 @@ $(document).ready( function () {
|
||||
mTmp = 0;
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{
|
||||
@ -73,7 +73,7 @@ $(document).ready( function () {
|
||||
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
{
|
||||
"fnRender": function (a) {
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "aoColumns.bVisible" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -19,7 +19,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "bVisible": false },
|
||||
@ -74,7 +74,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "bVisible": false },
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var mTmp = 0;
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -31,7 +31,7 @@ $(document).ready( function () {
|
||||
mTmp = true;
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -58,7 +58,7 @@ $(document).ready( function () {
|
||||
mTmp = true;
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -84,7 +84,7 @@ $(document).ready( function () {
|
||||
mTmp = true;
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -109,7 +109,7 @@ $(document).ready( function () {
|
||||
mTmp = true;
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -133,7 +133,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -153,7 +153,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
|
@ -6,7 +6,7 @@ $(document).ready( function () {
|
||||
* right in here
|
||||
*/
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "iDataSort": 4 },
|
||||
@ -48,7 +48,7 @@ $(document).ready( function () {
|
||||
mTmp = 0;
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "iDataSort": 4 },
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "aoColumns.sClass" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -19,7 +19,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
@ -80,7 +80,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
{ "sClass": 'unittest2' },
|
||||
null,
|
||||
|
@ -6,7 +6,7 @@ oTest.fnStart( "aoColumns.sName" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "aoColumns.sTitle" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -28,7 +28,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "sTitle": 'unit test' },
|
||||
@ -55,7 +55,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "sTitle": 'unit test 1' },
|
||||
|
@ -9,7 +9,7 @@ oTest.fnStart( "aoColumns.sWidth" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bAutoWidth": false,
|
||||
"aoColumns": [
|
||||
null,
|
||||
@ -32,7 +32,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bAutoWidth": false,
|
||||
"aoColumns": [
|
||||
null,
|
||||
@ -57,7 +57,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
|
@ -6,7 +6,7 @@ oTest.fnStart( "aoSearchCols" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -30,7 +30,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoSearchCols": [
|
||||
null,
|
||||
{ "sSearch": "Mozilla" },
|
||||
@ -48,7 +48,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoSearchCols": [
|
||||
null,
|
||||
{ "sSearch": "Mozilla" },
|
||||
@ -66,7 +66,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoSearchCols": [
|
||||
{ "sSearch": ".*ML", "bEscapeRegex": false },
|
||||
null,
|
||||
@ -84,7 +84,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoSearchCols": [
|
||||
{ "sSearch": ".*ML", "bEscapeRegex": false },
|
||||
{ "sSearch": "3.3", "bEscapeRegex": true },
|
||||
@ -102,7 +102,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"aoSearchCols": [
|
||||
{ "sSearch": ".*ML", "bEscapeRegex": false },
|
||||
{ "sSearch": "Allan", "bEscapeRegex": true },
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "asStripClasses" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -35,7 +35,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"asStripClasses": []
|
||||
} );
|
||||
},
|
||||
@ -58,7 +58,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"asStripClasses": [ 'test1', 'test2' ]
|
||||
} );
|
||||
},
|
||||
@ -77,7 +77,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"asStripClasses": [ 'test1', 'test2', 'test3', 'test4' ]
|
||||
} );
|
||||
},
|
||||
|
@ -10,7 +10,7 @@ oTest.fnStart( "bAutoWidth" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -84,7 +84,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bAutoWidth": false
|
||||
} );
|
||||
oSettings = oTable.fnSettings();
|
||||
@ -129,7 +129,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bAutoWidth": true
|
||||
} );
|
||||
oSettings = oTable.fnSettings();
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "bFilter" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -19,7 +19,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bFilter": false
|
||||
} );
|
||||
},
|
||||
@ -32,7 +32,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bFilter": true
|
||||
} );
|
||||
},
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "bInfo" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -19,7 +19,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bInfo": false
|
||||
} );
|
||||
},
|
||||
@ -32,7 +32,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bInfo": true
|
||||
} );
|
||||
},
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "bLengthChange" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -42,7 +42,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bLengthChange": false
|
||||
} );
|
||||
},
|
||||
@ -62,7 +62,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bLengthChange": true
|
||||
} );
|
||||
},
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "bPaginate" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -26,7 +26,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bPaginate": false
|
||||
} );
|
||||
},
|
||||
@ -46,7 +46,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bPaginate": true
|
||||
} );
|
||||
},
|
||||
|
@ -10,7 +10,7 @@ oTest.fnStart( "bProcessing" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -45,7 +45,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bProcessing": true
|
||||
} );
|
||||
oSettings = oTable.fnSettings();
|
||||
@ -83,7 +83,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bProcessing": false
|
||||
} );
|
||||
oSettings = oTable.fnSettings();
|
||||
|
@ -6,7 +6,7 @@ oTest.fnStart( "bServerSide" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "bSort" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -61,7 +61,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bSort": false
|
||||
} );
|
||||
},
|
||||
@ -86,7 +86,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bSort": true
|
||||
} );
|
||||
},
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "bSortClasses" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -85,7 +85,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bSortClasses": false
|
||||
} );
|
||||
},
|
||||
@ -120,7 +120,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bSortClasses": true
|
||||
} );
|
||||
},
|
||||
|
@ -6,7 +6,7 @@ oTest.fnStart( "fnDrawCallback" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
var mPass, bInit;
|
||||
@ -26,7 +26,7 @@ $(document).ready( function () {
|
||||
mPass = -1;
|
||||
bInit = false;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnDrawCallback": function ( ) {
|
||||
mPass = arguments.length;
|
||||
},
|
||||
@ -46,7 +46,7 @@ $(document).ready( function () {
|
||||
|
||||
bInit = false;
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnDrawCallback": function ( oSettings ) {
|
||||
mPass = oSettings;
|
||||
},
|
||||
@ -68,7 +68,7 @@ $(document).ready( function () {
|
||||
mPass = 0;
|
||||
bInit = false;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnDrawCallback": function ( ) {
|
||||
mPass++;
|
||||
},
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "fnHeaderCallback" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
var mPass, bInit;
|
||||
@ -24,7 +24,7 @@ $(document).ready( function () {
|
||||
mPass = -1;
|
||||
bInit = false;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnHeaderCallback": function ( ) {
|
||||
mPass = arguments.length;
|
||||
},
|
||||
@ -46,7 +46,7 @@ $(document).ready( function () {
|
||||
mPass = 0;
|
||||
bInit = false;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
mPass++;
|
||||
},
|
||||
@ -70,7 +70,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
nHead.getElementsByTagName('th')[0].innerHTML = "Displaying "+(iEnd-iStart)+" records";
|
||||
}
|
||||
@ -87,7 +87,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = true;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( iStart != 0 )
|
||||
{
|
||||
@ -107,7 +107,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = false;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( iStart == 10 )
|
||||
{
|
||||
@ -130,7 +130,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = false;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( iEnd == 20 )
|
||||
{
|
||||
@ -153,7 +153,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = false;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( aiDisplay.length == 57 )
|
||||
{
|
||||
@ -172,7 +172,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = false;
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( aiDisplay.length == 9 )
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ oTest.fnStart( "fnInitComplete" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
var mPass;
|
||||
@ -25,7 +25,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = -1;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnInitComplete": function ( ) {
|
||||
mPass = arguments.length;
|
||||
}
|
||||
@ -41,7 +41,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnInitComplete": function ( oSettings ) {
|
||||
mPass = oSettings;
|
||||
}
|
||||
@ -58,7 +58,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = 0;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnInitComplete": function ( ) {
|
||||
mPass++;
|
||||
}
|
||||
@ -85,7 +85,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = 0;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnInitComplete": function ( ) {
|
||||
mPass = $('#example tbody tr').length;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ oTest.fnStart( "fnRowCallback" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
var mPass;
|
||||
@ -25,7 +25,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = -1;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnRowCallback": function ( nTr ) {
|
||||
mPass = arguments.length;
|
||||
return nTr;
|
||||
@ -43,7 +43,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = 0;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnRowCallback": function ( nTr, asData, iDrawIndex, iDataIndex ) {
|
||||
mPass++;
|
||||
return nTr;
|
||||
@ -58,7 +58,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnRowCallback": function ( nTr, asData, iDrawIndex, iDataIndex ) {
|
||||
$(nTr).addClass('unit_test');
|
||||
return nTr;
|
||||
@ -75,7 +75,7 @@ $(document).ready( function () {
|
||||
|
||||
mPass = true;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnRowCallback": function ( nTr, asData, iDrawIndex, iDataIndex ) {
|
||||
if ( asData.length != 5 )
|
||||
mPass = false;
|
||||
@ -94,7 +94,7 @@ $(document).ready( function () {
|
||||
mPass = true;
|
||||
var iCount = 0;
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnRowCallback": function ( nTr, asData, iDrawIndex, iDataIndex ) {
|
||||
if ( iCount != iDrawIndex )
|
||||
mPass = false;
|
||||
|
@ -8,7 +8,7 @@ $(document).ready( function () {
|
||||
"Argument length",
|
||||
function () {
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnServerData": function () {
|
||||
mPass = arguments.length;
|
||||
}
|
||||
@ -22,9 +22,9 @@ $(document).ready( function () {
|
||||
function () {
|
||||
$('#example').dataTable( {
|
||||
"bDestroy": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnServerData": function (sUrl, aoData, fnCallback) {
|
||||
mPass = sUrl == "../../../examples/examples_support/json_source.txt";
|
||||
mPass = sUrl == "../../../examples/ajax/sources/arrays.txt";
|
||||
}
|
||||
} );
|
||||
},
|
||||
@ -36,7 +36,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
$('#example').dataTable( {
|
||||
"bDestroy": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnServerData": function (sUrl, aoData, fnCallback) {
|
||||
mPass = aoData.length==0;
|
||||
}
|
||||
@ -50,7 +50,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
$('#example').dataTable( {
|
||||
"bDestroy": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"fnServerData": function (sUrl, aoData, fnCallback) {
|
||||
mPass = typeof fnCallback == 'function';
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "iDisplayLength" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -25,7 +25,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"iDisplayLength": 25
|
||||
} );
|
||||
},
|
||||
@ -44,7 +44,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"iDisplayLength": 100
|
||||
} );
|
||||
},
|
||||
@ -63,7 +63,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"iDisplayLength": 23
|
||||
} );
|
||||
},
|
||||
|
@ -6,7 +6,7 @@ oTest.fnStart( "oLanguage.oPaginate" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"sPaginationType": "full_numbers"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
@ -43,7 +43,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"sPaginationType": "full_numbers",
|
||||
"oLanguage": {
|
||||
"oPaginate": {
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "oLanguage.sInfo" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -26,7 +26,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit test"
|
||||
}
|
||||
@ -47,7 +47,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _START_ test"
|
||||
}
|
||||
@ -61,7 +61,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _END_ test"
|
||||
}
|
||||
@ -75,7 +75,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _END_ test"
|
||||
}
|
||||
@ -89,7 +89,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _START_ _END_ test"
|
||||
}
|
||||
@ -103,7 +103,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _START_ _END_ _TOTAL_ test"
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "oLanguage.sInfoEmpty" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -31,7 +31,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfoEmpty": "unit test"
|
||||
}
|
||||
@ -59,7 +59,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfoEmpty": "unit _START_ _END_ _TOTAL_ test"
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "oLanguage.sInfoPostFix" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -26,7 +26,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfoPostFix": "unit test"
|
||||
}
|
||||
@ -48,7 +48,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfoPostFix": "unit _START_ _END_ _TOTAL_ test"
|
||||
}
|
||||
@ -63,7 +63,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sInfoPostFix": "unit test"
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "oLanguage.sLengthMenu" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -38,7 +38,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sLengthMenu": "unit test"
|
||||
}
|
||||
@ -63,7 +63,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sLengthMenu": "unit _MENU_ test"
|
||||
}
|
||||
@ -85,7 +85,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sLengthMenu": "_MENU_"
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "oLanguage.sProcessing" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bProcessing": true
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
@ -27,7 +27,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"bProcessing": true,
|
||||
"oLanguage": {
|
||||
"sProcessing": "unit test"
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "oLanguage.sSearch" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -27,7 +27,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sSearch": "unit test"
|
||||
}
|
||||
@ -50,7 +50,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sSearch": ""
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ oTest.fnStart( "oLanguage.sUrl" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -24,7 +24,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sUrl": "../../../examples/examples_support/de_DE.txt"
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "oLanguage.sZeroRecords" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -27,7 +27,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oLanguage": {
|
||||
"sZeroRecords": "unit test"
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "oSearch" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -26,7 +26,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oSearch": {
|
||||
"sSearch": "Mozilla"
|
||||
}
|
||||
@ -48,7 +48,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oSearch": {
|
||||
"sSearch": "DS",
|
||||
"bRegex": false
|
||||
@ -63,7 +63,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oSearch": {
|
||||
"sSearch": "Opera",
|
||||
"bRegex": true
|
||||
@ -78,7 +78,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oSearch": {
|
||||
"sSearch": "1.*",
|
||||
"bRegex": false
|
||||
@ -93,7 +93,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"oSearch": {
|
||||
"sSearch": "1.*",
|
||||
"bRegex": true
|
||||
|
@ -6,7 +6,7 @@ oTest.fnStart( "sAjaxSource" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -14,7 +14,7 @@ $(document).ready( function () {
|
||||
"Server side is off by default",
|
||||
null,
|
||||
function () {
|
||||
return oSettings.sAjaxSource == "../../../examples/examples_support/json_source.txt";
|
||||
return oSettings.sAjaxSource == "../../../examples/ajax/sources/arrays.txt";
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -6,7 +6,7 @@ oTest.fnStart( "sDom" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -44,7 +44,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"sDom": '<"wrapper"flipt>'
|
||||
} );
|
||||
oSettings = oTable.fnSettings();
|
||||
@ -94,7 +94,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"sDom": '<lf<t>ip>'
|
||||
} );
|
||||
},
|
||||
@ -144,7 +144,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"sDom": 'frtip'
|
||||
} );
|
||||
},
|
||||
@ -173,7 +173,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"sDom": 'lrtip'
|
||||
} );
|
||||
},
|
||||
@ -204,7 +204,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"sDom": 'lfrtp'
|
||||
} );
|
||||
},
|
||||
@ -233,7 +233,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"sDom": 'lfrti'
|
||||
} );
|
||||
},
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "sPaginationType" );
|
||||
$(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -60,7 +60,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"sAjaxSource": "../../../examples/examples_support/json_source.txt",
|
||||
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
|
||||
"sPaginationType": "full_numbers",
|
||||
"fnInitComplete": function () {
|
||||
bComplete = true;
|
||||
|
@ -5,7 +5,7 @@ oTest.fnStart( "iDraw - check that iDraw increments for each draw" );
|
||||
$(document).ready( function () {
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
|
@ -10,7 +10,7 @@ oTest.fnStart( "Info element with display all" );
|
||||
$(document).ready( function () {
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTable.fnSettings()._iDisplayLength = -1;
|
||||
|
@ -7,7 +7,7 @@ $(document).ready( function () {
|
||||
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumnDefs": [
|
||||
{ "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] },
|
||||
{ "bVisible": false, "aTargets": [ 3 ] }
|
||||
@ -29,7 +29,7 @@ $(document).ready( function () {
|
||||
function () {
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"sScrollY": 200,
|
||||
"aoColumnDefs": [
|
||||
{ "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] },
|
||||
|
@ -4,7 +4,7 @@ oTest.fnStart( "2600 - Display rewind when changing length" );
|
||||
$(document).ready( function () {
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
|
@ -28,7 +28,7 @@ oTest.fnWaitTest(
|
||||
$(document).ready( function () {
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
/* Basic checks */
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -39,7 +39,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['1','asc']]
|
||||
} );
|
||||
},
|
||||
@ -53,7 +53,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['1','desc']]
|
||||
} );
|
||||
},
|
||||
@ -67,7 +67,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['1','asc']]
|
||||
} );
|
||||
},
|
||||
@ -81,7 +81,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['1','desc']]
|
||||
} );
|
||||
},
|
||||
@ -95,7 +95,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['0','asc'], ['1','asc']]
|
||||
} );
|
||||
},
|
||||
@ -108,7 +108,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['0','asc'], ['1','desc']]
|
||||
} );
|
||||
},
|
||||
@ -121,7 +121,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['0','desc'], ['1','asc']]
|
||||
} );
|
||||
},
|
||||
@ -134,7 +134,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['0','desc'], ['1','desc']]
|
||||
} );
|
||||
},
|
||||
@ -148,7 +148,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['0','asc'], ['3','asc']]
|
||||
} );
|
||||
},
|
||||
@ -161,7 +161,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['0','asc'], ['3','desc']]
|
||||
} );
|
||||
},
|
||||
@ -174,7 +174,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['0','desc'], ['3','asc']]
|
||||
} );
|
||||
},
|
||||
@ -187,7 +187,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['0','desc'], ['3','desc']]
|
||||
} );
|
||||
},
|
||||
@ -200,7 +200,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSorting": [['0','asc'], ['3','asc'], ['1','asc']]
|
||||
} );
|
||||
},
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -24,7 +24,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSortingFixed": [['0','asc']]
|
||||
} );
|
||||
$('#example thead th:eq(1)').click();
|
||||
@ -46,7 +46,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aaSortingFixed": [['3','asc']]
|
||||
} );
|
||||
$('#example thead th:eq(1)').click();
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -21,7 +21,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "bSortable": false },
|
||||
@ -56,7 +56,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "bSortable": false },
|
||||
|
@ -11,7 +11,7 @@ $(document).ready( function () {
|
||||
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -21,7 +21,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "bVisible": false },
|
||||
@ -75,7 +75,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "bVisible": false },
|
||||
|
@ -6,7 +6,7 @@ $(document).ready( function () {
|
||||
var mTmp = 0;
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -33,7 +33,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -61,7 +61,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -88,7 +88,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -114,7 +114,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -139,7 +139,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "fnRender": function (a) {
|
||||
@ -160,7 +160,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -21,7 +21,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
@ -83,7 +83,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
{ "sClass": 'unittest2' },
|
||||
null,
|
||||
|
@ -7,7 +7,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -30,7 +30,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "sTitle": 'unit test' },
|
||||
@ -58,7 +58,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
{ "sTitle": 'unit test 1' },
|
||||
|
@ -10,7 +10,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bAutoWidth": false,
|
||||
"aoColumns": [
|
||||
null,
|
||||
@ -34,7 +34,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bAutoWidth": false,
|
||||
"aoColumns": [
|
||||
null,
|
||||
@ -60,7 +60,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"aoColumns": [
|
||||
null,
|
||||
null,
|
||||
|
@ -7,7 +7,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing_filter_col.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/filter_col.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -32,7 +32,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing_filter_col.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/filter_col.php",
|
||||
"aoSearchCols": [
|
||||
null,
|
||||
{ "sSearch": "Mozilla" },
|
||||
@ -51,7 +51,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing_filter_col.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/filter_col.php",
|
||||
"aoSearchCols": [
|
||||
null,
|
||||
{ "sSearch": "Mozilla" },
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -37,7 +37,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"asStripClasses": []
|
||||
} );
|
||||
},
|
||||
@ -61,7 +61,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"asStripClasses": [ 'test1', 'test2' ]
|
||||
} );
|
||||
},
|
||||
@ -81,7 +81,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"asStripClasses": [ 'test1', 'test2', 'test3', 'test4' ]
|
||||
} );
|
||||
},
|
||||
|
@ -11,7 +11,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -86,7 +86,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bAutoWidth": false
|
||||
} );
|
||||
oSettings = oTable.fnSettings();
|
||||
@ -132,7 +132,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bAutoWidth": true
|
||||
} );
|
||||
oSettings = oTable.fnSettings();
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -21,7 +21,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bFilter": false
|
||||
} );
|
||||
},
|
||||
@ -35,7 +35,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bFilter": true
|
||||
} );
|
||||
},
|
||||
|
@ -7,7 +7,7 @@ $(document).ready( function () {
|
||||
"bScrollInfinite": true,
|
||||
"sScrollY": "200px",
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -21,7 +21,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bInfo": false
|
||||
} );
|
||||
},
|
||||
@ -35,7 +35,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bInfo": true
|
||||
} );
|
||||
},
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -44,7 +44,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bLengthChange": false
|
||||
} );
|
||||
},
|
||||
@ -65,7 +65,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bLengthChange": true
|
||||
} );
|
||||
},
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -28,7 +28,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bPaginate": false
|
||||
} );
|
||||
},
|
||||
@ -49,7 +49,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bPaginate": true
|
||||
} );
|
||||
},
|
||||
|
@ -11,7 +11,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -47,7 +47,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bProcessing": true
|
||||
} );
|
||||
oSettings = oTable.fnSettings();
|
||||
@ -86,7 +86,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bProcessing": false
|
||||
} );
|
||||
oSettings = oTable.fnSettings();
|
||||
|
@ -7,7 +7,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -63,7 +63,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bSort": false
|
||||
} );
|
||||
},
|
||||
@ -89,7 +89,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bSort": true
|
||||
} );
|
||||
},
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -87,7 +87,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bSortClasses": false
|
||||
} );
|
||||
},
|
||||
@ -123,7 +123,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"bSortClasses": true
|
||||
} );
|
||||
},
|
||||
|
@ -7,7 +7,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
var mPass;
|
||||
@ -27,7 +27,7 @@ $(document).ready( function () {
|
||||
mPass = -1;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnDrawCallback": function ( ) {
|
||||
mPass = arguments.length;
|
||||
}
|
||||
@ -44,7 +44,7 @@ $(document).ready( function () {
|
||||
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnDrawCallback": function ( oSettings ) {
|
||||
mPass = oSettings;
|
||||
}
|
||||
@ -62,7 +62,7 @@ $(document).ready( function () {
|
||||
mPass = 0;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnDrawCallback": function ( ) {
|
||||
mPass++;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
var mPass;
|
||||
@ -25,7 +25,7 @@ $(document).ready( function () {
|
||||
mPass = -1;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnHeaderCallback": function ( ) {
|
||||
mPass = arguments.length;
|
||||
}
|
||||
@ -43,7 +43,7 @@ $(document).ready( function () {
|
||||
mPass = 0;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
mPass++;
|
||||
}
|
||||
@ -65,7 +65,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
nHead.getElementsByTagName('th')[0].innerHTML = "Displaying "+(iEnd-iStart)+" records";
|
||||
}
|
||||
@ -83,7 +83,7 @@ $(document).ready( function () {
|
||||
mPass = true;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( iStart != 0 )
|
||||
{
|
||||
@ -104,7 +104,7 @@ $(document).ready( function () {
|
||||
mPass = false;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( iStart == 0 )
|
||||
{
|
||||
@ -128,7 +128,7 @@ $(document).ready( function () {
|
||||
mPass = false;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( iEnd == 10 )
|
||||
{
|
||||
@ -152,7 +152,7 @@ $(document).ready( function () {
|
||||
mPass = false;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( aiDisplay.length == 10 )
|
||||
{
|
||||
@ -172,7 +172,7 @@ $(document).ready( function () {
|
||||
mPass = false;
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnHeaderCallback": function ( nHead, aasData, iStart, iEnd, aiDisplay ) {
|
||||
if ( aiDisplay.length == 9 )
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
var mPass;
|
||||
@ -27,7 +27,7 @@ $(document).ready( function () {
|
||||
mPass = -1;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnInitComplete": function ( ) {
|
||||
mPass = arguments.length;
|
||||
}
|
||||
@ -44,7 +44,7 @@ $(document).ready( function () {
|
||||
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnInitComplete": function ( oSettings ) {
|
||||
mPass = oSettings;
|
||||
}
|
||||
@ -62,7 +62,7 @@ $(document).ready( function () {
|
||||
mPass = 0;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnInitComplete": function ( ) {
|
||||
mPass++;
|
||||
}
|
||||
@ -90,7 +90,7 @@ $(document).ready( function () {
|
||||
mPass = 0;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnInitComplete": function ( ) {
|
||||
mPass = $('#example tbody tr').length;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
var mPass;
|
||||
@ -27,7 +27,7 @@ $(document).ready( function () {
|
||||
mPass = -1;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnRowCallback": function ( nTr ) {
|
||||
mPass = arguments.length;
|
||||
return nTr;
|
||||
@ -46,7 +46,7 @@ $(document).ready( function () {
|
||||
mPass = 0;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnRowCallback": function ( nTr, asData, iDrawIndex, iDataIndex ) {
|
||||
mPass++;
|
||||
return nTr;
|
||||
@ -62,7 +62,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnRowCallback": function ( nTr, asData, iDrawIndex, iDataIndex ) {
|
||||
$(nTr).addClass('unit_test');
|
||||
return nTr;
|
||||
@ -80,7 +80,7 @@ $(document).ready( function () {
|
||||
mPass = true;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnRowCallback": function ( nTr, asData, iDrawIndex, iDataIndex ) {
|
||||
if ( asData.length != 5 )
|
||||
mPass = false;
|
||||
@ -100,7 +100,7 @@ $(document).ready( function () {
|
||||
var iCount = 0;
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"fnRowCallback": function ( nTr, asData, iDrawIndex, iDataIndex ) {
|
||||
if ( iCount != iDrawIndex )
|
||||
mPass = false;
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
|
||||
oTest.fnWaitTest(
|
||||
@ -27,7 +27,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"iDisplayLength": 25
|
||||
} );
|
||||
},
|
||||
@ -47,7 +47,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"iDisplayLength": 100
|
||||
} );
|
||||
},
|
||||
@ -67,7 +67,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"iDisplayLength": 23
|
||||
} );
|
||||
},
|
||||
|
@ -7,7 +7,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"sPaginationType": "full_numbers"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
@ -45,7 +45,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"sPaginationType": "full_numbers",
|
||||
"oLanguage": {
|
||||
"oPaginate": {
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -28,7 +28,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit test"
|
||||
}
|
||||
@ -50,7 +50,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _START_ test"
|
||||
}
|
||||
@ -65,7 +65,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _END_ test"
|
||||
}
|
||||
@ -80,7 +80,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _END_ test"
|
||||
}
|
||||
@ -95,7 +95,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _START_ _END_ test"
|
||||
}
|
||||
@ -110,7 +110,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
$('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfo": "unit _START_ _END_ _TOTAL_ test"
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -33,7 +33,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfoEmpty": "unit test"
|
||||
}
|
||||
@ -62,7 +62,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfoEmpty": "unit _START_ _END_ _TOTAL_ test"
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -28,7 +28,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfoPostFix": "unit test"
|
||||
}
|
||||
@ -51,7 +51,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfoPostFix": "unit _START_ _END_ _TOTAL_ test"
|
||||
}
|
||||
@ -67,7 +67,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sInfoPostFix": "unit test"
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ $(document).ready( function () {
|
||||
/* Check the default */
|
||||
var oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php"
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
|
||||
} );
|
||||
var oSettings = oTable.fnSettings();
|
||||
|
||||
@ -40,7 +40,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sLengthMenu": "unit test"
|
||||
}
|
||||
@ -66,7 +66,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sLengthMenu": "unit _MENU_ test"
|
||||
}
|
||||
@ -89,7 +89,7 @@ $(document).ready( function () {
|
||||
oSession.fnRestore();
|
||||
oTable = $('#example').dataTable( {
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../../../examples/examples_support/server_processing.php",
|
||||
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
|
||||
"oLanguage": {
|
||||
"sLengthMenu": "_MENU_"
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user