diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 46e77635..04d9dbf3 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -d4aebc0ff333090bf3b1cf840ceeabeb15595203 +747b47fa62dea0dbf7261943a63d68cf00f5ab3a diff --git a/examples/server_side/pipeline.html b/examples/server_side/pipeline.html index ea6b13b6..9a101e35 100644 --- a/examples/server_side/pipeline.html +++ b/examples/server_side/pipeline.html @@ -25,10 +25,11 @@ $.fn.dataTable.pipeline = function ( opts ) { // Configuration options var conf = $.extend( { - pages: 5, // number of pages to cache - url: '', // script url - data: null // function or object with parameters to send to the server - // matching how `ajax.data` works in DataTables + pages: 5, // number of pages to cache + url: '', // script url + data: null, // function or object with parameters to send to the server + // matching how `ajax.data` works in DataTables + method: 'GET' // Ajax HTTP method }, opts ); // Private variables for storing the cache @@ -90,6 +91,7 @@ $.fn.dataTable.pipeline = function ( opts ) { } settings.jqXHR = $.ajax( { + "type": conf.method, "url": conf.url, "data": request, "dataType": "json", @@ -200,10 +202,11 @@ $(document).ready(function() { $.fn.dataTable.pipeline = function ( opts ) { // Configuration options var conf = $.extend( { - pages: 5, // number of pages to cache - url: '', // script url - data: null // function or object with parameters to send to the server - // matching how `ajax.data` works in DataTables + pages: 5, // number of pages to cache + url: '', // script url + data: null, // function or object with parameters to send to the server + // matching how `ajax.data` works in DataTables + method: 'GET' // Ajax HTTP method }, opts ); // Private variables for storing the cache @@ -265,6 +268,7 @@ $.fn.dataTable.pipeline = function ( opts ) { } settings.jqXHR = $.ajax( { + "type": conf.method, "url": conf.url, "data": request, "dataType": "json",