1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Update - example: Add method option to SSP pipeline

This commit is contained in:
Allan Jardine 2014-03-04 08:52:21 +00:00
parent 8186f9378c
commit 10634dd733
2 changed files with 13 additions and 9 deletions

View File

@ -1 +1 @@
d4aebc0ff333090bf3b1cf840ceeabeb15595203
747b47fa62dea0dbf7261943a63d68cf00f5ab3a

View File

@ -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",