dataTable with ajax and extra data but in server side get undefined
dataTable with ajax and extra data but in server side get undefined
First, thanks for ur help. I'm new here and thanks for the great tool dataTables. This is my config about my problem
[code]
$('a#calculate').bind('click',function(){
$('#example').dataTable({
"bProcessing": true,
"bDestroy": true,
"bServerSide": true,
"sAjaxSource": "/_calc_netflow",
"fnServerData": function ( sSource, aoData, fnCallback ) {
aoData.push({
'choice':$('#choice').val(),
'start':$('#start').val(),
'end':$('#end').val()
})
$.getJSON(sSource,aoData,fnCallback)
}
});
});
[/code]
when i use it , i get error in my server-side:
[code]
192.168.108.13 - - [21/May/2012 14:01:21] "GET /_calc_netflow?
sEcho=1&iColumns=3&sColumns=&iDisplayStart=0&iDisplayLength=10&mDataProp_0=0&mDataProp_1=1
&mDataProp_2=2&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=
&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&iSortCol_0=0&
sSortDir_0=asc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&undefined=undefined HTTP/1.1"
[/code]
i search whole this side but i couldn't find answer. Does any here help me?
[code]
$('a#calculate').bind('click',function(){
$('#example').dataTable({
"bProcessing": true,
"bDestroy": true,
"bServerSide": true,
"sAjaxSource": "/_calc_netflow",
"fnServerData": function ( sSource, aoData, fnCallback ) {
aoData.push({
'choice':$('#choice').val(),
'start':$('#start').val(),
'end':$('#end').val()
})
$.getJSON(sSource,aoData,fnCallback)
}
});
});
[/code]
when i use it , i get error in my server-side:
[code]
192.168.108.13 - - [21/May/2012 14:01:21] "GET /_calc_netflow?
sEcho=1&iColumns=3&sColumns=&iDisplayStart=0&iDisplayLength=10&mDataProp_0=0&mDataProp_1=1
&mDataProp_2=2&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=
&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&iSortCol_0=0&
sSortDir_0=asc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&undefined=undefined HTTP/1.1"
[/code]
i search whole this side but i couldn't find answer. Does any here help me?
This discussion has been closed.