diff --git a/examples/server_side/post.html b/examples/server_side/post.html index 5b8dd31b..0e12bcb8 100644 --- a/examples/server_side/post.html +++ b/examples/server_side/post.html @@ -17,15 +17,7 @@ "bProcessing": true, "bServerSide": true, "sAjaxSource": "scripts/post.php", - "fnServerData": function ( sSource, aoData, fnCallback ) { - $.ajax( { - "dataType": 'json', - "type": "POST", - "url": sSource, - "data": aoData, - "success": fnCallback - } ); - } + "sServerMethod": "POST" } ); } ); @@ -37,7 +29,7 @@
The default HTTP method that DataTables uses to get data from the server-side if GET, however, there are times when you may wish to use POST. This is very easy using the fnServerData() initialisation parameter, as shown in this example.
+The default HTTP method that DataTables uses to get data from the server-side if GET, however, there are times when you may wish to use POST. This is very easy using the sServerMethod initialisation parameter, which is simply set to the HTTP method that you want to use - the default is 'GET' and this example shows 'POST' being used.