X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webapp%2Fresources%2Fdatatables-1.9.4%2Fexamples%2Fserver_side%2Fpost.html;fp=webapp%2Fresources%2Fdatatables-1.9.4%2Fexamples%2Fserver_side%2Fpost.html;h=8790bffbf8aa28479be761ede78d5fa6521665c1;hb=9bb6ee99ca7f738fac1087190b5481b8fe6e8d9f;hp=0000000000000000000000000000000000000000;hpb=2e3f6b76be585306f1003d849831840c0adb3360;p=proteocache.git diff --git a/webapp/resources/datatables-1.9.4/examples/server_side/post.html b/webapp/resources/datatables-1.9.4/examples/server_side/post.html new file mode 100644 index 0000000..8790bff --- /dev/null +++ b/webapp/resources/datatables-1.9.4/examples/server_side/post.html @@ -0,0 +1,214 @@ + + + + + + + DataTables example + + + + + + +
+
+ DataTables server-side processing with POST example +
+ +

Preamble

+

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.

+ +

Live example

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Rendering engineBrowserPlatform(s)Engine versionCSS grade
Loading data from server
Rendering engineBrowserPlatform(s)Engine versionCSS grade
+
+
+ + +

Initialisation code

+
$(document).ready(function() {
+	$('#example').dataTable( {
+		"bProcessing": true,
+		"bServerSide": true,
+		"sAjaxSource": "scripts/post.php",
+		"sServerMethod": "POST"
+	} );
+} );
+ + + +

Server response

+

The code below shows the latest JSON data that has been returned from the server in response to the Ajax request made by DataTables. This will update as further requests are made.

+

+			
+			
+			

Other examples

+ + + + + + +
+ + \ No newline at end of file