mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Updated: Move the various server-side example support scripts into the server_side/scripts directory
This commit is contained in:
parent
6849515c0e
commit
70305b1831
@ -16,7 +16,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing_ordering.php",
|
||||
"sAjaxSource": "scripts/ordering.php",
|
||||
"aoColumns": [
|
||||
{ "sName": "engine" },
|
||||
{ "sName": "browser" },
|
||||
@ -74,7 +74,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing_ordering.php",
|
||||
"sAjaxSource": "scripts/ordering.php",
|
||||
"aoColumns": [
|
||||
{ "sName": "engine" },
|
||||
{ "sName": "browser" },
|
||||
|
@ -16,7 +16,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php",
|
||||
"sAjaxSource": "scripts/server_processing.php",
|
||||
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
||||
/* Add some extra data to the sender */
|
||||
aoData.push( { "name": "more_data", "value": "my_value" } );
|
||||
@ -74,7 +74,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php",
|
||||
"sAjaxSource": "scripts/server_processing.php",
|
||||
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
||||
/* Add some extra data to the sender */
|
||||
aoData.push( { "name": "more_data", "value": "my_value" } );
|
||||
|
@ -18,7 +18,7 @@
|
||||
oTable = $('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php",
|
||||
"sAjaxSource": "scripts/server_processing.php",
|
||||
"fnDrawCallback": function () {
|
||||
$('#example tbody td').editable( '../examples_support/editable_ajax.php', {
|
||||
"callback": function( sValue, y ) {
|
||||
@ -78,7 +78,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php"
|
||||
"sAjaxSource": "scripts/server_processing.php"
|
||||
} );
|
||||
} );</pre>
|
||||
|
||||
|
@ -119,7 +119,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php",
|
||||
"sAjaxSource": "scripts/server_processing.php",
|
||||
"fnServerData": fnDataTablesPipeline
|
||||
} );
|
||||
} );
|
||||
@ -274,7 +274,7 @@ $(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php",
|
||||
"sAjaxSource": "scripts/server_processing.php",
|
||||
"fnServerData": fnDataTablesPipeline
|
||||
} );
|
||||
} );</pre>
|
||||
|
@ -16,7 +16,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing_post.php",
|
||||
"sAjaxSource": "scripts/post.php",
|
||||
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
||||
$.ajax( {
|
||||
"dataType": 'json',
|
||||
@ -75,7 +75,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing_post.php",
|
||||
"sAjaxSource": "scripts/post.php",
|
||||
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
||||
$.ajax( {
|
||||
"dataType": 'json',
|
||||
|
@ -31,7 +31,7 @@
|
||||
oTable = $('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing_details_col.php",
|
||||
"sAjaxSource": "scripts/details_col.php",
|
||||
"aoColumns": [
|
||||
{ "sClass": "center", "bSortable": false },
|
||||
null,
|
||||
@ -123,7 +123,7 @@ $(document).ready(function() {
|
||||
oTable = $('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing_details_col.php",
|
||||
"sAjaxSource": "scripts/details_col.php",
|
||||
"aoColumns": [
|
||||
{ "sClass": "center", "bSortable": false },
|
||||
null,
|
||||
|
@ -25,7 +25,7 @@ $(document).ready(function() {
|
||||
oTable = $("#example").dataTable({
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing_id.php",
|
||||
"sAjaxSource": "scripts/id.php",
|
||||
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
|
||||
if ( jQuery.inArray(aData[0], gaiSelected) != -1 )
|
||||
{
|
||||
@ -116,7 +116,7 @@ $(document).ready(function() {
|
||||
oTable = $("#example").dataTable({
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing_id.php",
|
||||
"sAjaxSource": "scripts/id.php",
|
||||
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
|
||||
if ( jQuery.inArray(aData[0], gaiSelected) != -1 )
|
||||
{
|
||||
|
@ -16,7 +16,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php"
|
||||
"sAjaxSource": "scripts/server_processing.php"
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
@ -67,7 +67,7 @@
|
||||
$('#example').dataTable( {
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "../examples_support/server_processing.php"
|
||||
"sAjaxSource": "scripts/server_processing.php"
|
||||
} );
|
||||
} );</pre>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user