sServerMethod set as POST but still use GET
sServerMethod set as POST but still use GET
mathie
Posts: 36Questions: 0Answers: 0
Is there any reason if I set it as POST but it still uses GET (see from Firefox "Web Console")? I use 1.9 from Microsoft/ASP CDN. This is the init call:
[code]
$(function() { $("#jDT1").dataTable({"oLanguage":{"sLengthMenu":gPerPage,"sSearch":"Filter:"},"bJQueryUI":true,"bAutoWidth":false,"bStateSave":true,"bSort":false,"sPaginationType":"full_numbers","sCookiePrefix":"jDataTable","sDom":gLayout,"bProcessing":true,"bServerSide":true,"sAjaxSource":"\/Tests\/dt.html","sServerMethod":"POST","fnServerData":fnServerDataCustom});});
[/code]
[code]
$(function() { $("#jDT1").dataTable({"oLanguage":{"sLengthMenu":gPerPage,"sSearch":"Filter:"},"bJQueryUI":true,"bAutoWidth":false,"bStateSave":true,"bSort":false,"sPaginationType":"full_numbers","sCookiePrefix":"jDataTable","sDom":gLayout,"bProcessing":true,"bServerSide":true,"sAjaxSource":"\/Tests\/dt.html","sServerMethod":"POST","fnServerData":fnServerDataCustom});});
[/code]
This discussion has been closed.
Replies
You are using your own fnServerData function, so I guess the question is, does that use sServerMethod from the DataTables settings object - I presume not :-).
Allan
(p/s: I donated, several times indeed, and will continue since Allan really improves DataTables on a daily basis)
[code]$.post("dtDebug.php",{url:a,input:b,output:f.responseText});[/code]
Thanks
http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/jquery.dataTables.min.js
http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.8.2/jquery.dataTables.min.js
Allan