From ff097d56530ae7e4c557291c2508735f7397bb8b Mon Sep 17 00:00:00 2001 From: nicky g Date: Thu, 28 May 2015 12:36:01 +0530 Subject: [PATCH] Update README.md datatable ajax post --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b791de5..ce345d4 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,10 @@ in the `data` property of the `columns` array. $('#myDataTable').dataTable( { processing: true, serverSide: true, - ajax: '/index.php/DataTableExample/dataTable', + ajax: { + "url": "/index.php/DataTableExample/dataTable", + "type": "POST" + }, columns: [ { data: "s.s_name" }, {data : "c.c_name"}, @@ -186,4 +189,4 @@ Resources License Information ------------------- -License: The MIT License (MIT), http://opensource.org/licenses/MIT \ No newline at end of file +License: The MIT License (MIT), http://opensource.org/licenses/MIT