Stuck on processing on server side
Stuck on processing on server side
illectronic
Posts: 20Questions: 0Answers: 0
My JSON response looks correct. Here is the first row of the server_side.php. It is also saying my first paremter control_id is incorrect.
[code]
{"sEcho":1,"iTotalRecords":0,"iTotalDisplayRecords":"41159","aaData":[["437","LAB.437.mma_200511.dat","LAB","1305577","68841189","08-DEC-05","2323186193",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],
[/code]
Here is the javascript:
[code]
$(document).ready(function() {
var Table = $("#top-table").dataTable({
"bFilter":false,
"iDisplayLength": 50,
"bPaginate":true,
"bProcessing": true,
"bServerSide": true,
"bInfo":false,
iTotalDisplayRecords: 50,
"sAjaxSource": "ssi/server_side.php",
"aoColumns": [
{ "mDataProp": "CONTROL_ID" },
{ "mDataProp": "FILE_NAME"},
{ "mDataProp": "LINE_CNT"},
{ "mDataProp": "BYTE_CNT"},
{ "mDataProp": "CREATE_DT"},
{ "mDataProp": "FILE_CKSUM" },
{ "mDataProp": "TXN" },
{ "mDataProp": "ORG_FILE_NAME"},
{ "mDataProp": "FILE_DIR"},
{ "mDataProp": "INT_EXT_FLG"},
{ "mDataProp": "PID"},
{ "mDataProp": "PRIORITY"},
{ "mDataProp": "OSTIMESTAMP"},
{ "mDataProp": "FINAL_TBL_NAME"},
{ "mDataProp": "CNSL_FILE_MV_LU_ID"},
{ "mDataProp": "LAST_JOB_NAME"},
{ "mDataProp": "DELIMITER"},
{ "mDataProp": "NO_TOKENS"},
{ "mDataProp": "MINLENGTH"},
{ "mDataProp": "HEAD_DATA"},
{ "mDataProp": "TAIL_DATA"}
],
"sAjaxSource": "ssi/server_side.php",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
} );
}
});
});
[/code]
My server_side.php can be seen on pastebin because it is too long: http://pastebin.com/zNgXFu1a
Thanks
[code]
{"sEcho":1,"iTotalRecords":0,"iTotalDisplayRecords":"41159","aaData":[["437","LAB.437.mma_200511.dat","LAB","1305577","68841189","08-DEC-05","2323186193",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],
[/code]
Here is the javascript:
[code]
$(document).ready(function() {
var Table = $("#top-table").dataTable({
"bFilter":false,
"iDisplayLength": 50,
"bPaginate":true,
"bProcessing": true,
"bServerSide": true,
"bInfo":false,
iTotalDisplayRecords: 50,
"sAjaxSource": "ssi/server_side.php",
"aoColumns": [
{ "mDataProp": "CONTROL_ID" },
{ "mDataProp": "FILE_NAME"},
{ "mDataProp": "LINE_CNT"},
{ "mDataProp": "BYTE_CNT"},
{ "mDataProp": "CREATE_DT"},
{ "mDataProp": "FILE_CKSUM" },
{ "mDataProp": "TXN" },
{ "mDataProp": "ORG_FILE_NAME"},
{ "mDataProp": "FILE_DIR"},
{ "mDataProp": "INT_EXT_FLG"},
{ "mDataProp": "PID"},
{ "mDataProp": "PRIORITY"},
{ "mDataProp": "OSTIMESTAMP"},
{ "mDataProp": "FINAL_TBL_NAME"},
{ "mDataProp": "CNSL_FILE_MV_LU_ID"},
{ "mDataProp": "LAST_JOB_NAME"},
{ "mDataProp": "DELIMITER"},
{ "mDataProp": "NO_TOKENS"},
{ "mDataProp": "MINLENGTH"},
{ "mDataProp": "HEAD_DATA"},
{ "mDataProp": "TAIL_DATA"}
],
"sAjaxSource": "ssi/server_side.php",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
} );
}
});
});
[/code]
My server_side.php can be seen on pastebin because it is too long: http://pastebin.com/zNgXFu1a
Thanks
This discussion has been closed.
Replies
Allan
Allan
Thanks for this great script. On to more customizing