custom variable not parsing online
custom variable not parsing online
alex_begos
Posts: 2Questions: 0Answers: 0
I created a test page with datatables server-side perfectly working on localhost but when I transferred it to the webserver the custom vars not parsing correctly
on localhost wamp this work correctly
[code] aoData.push( { "name": "COMPANY", "value": $('#COMPANY').val() } );[/code]
online not working
this is my code
[code] var oTable;
$(document).ready(function() {
oTable = $('#example').dataTable( {
"aaSorting": [[ 1, "desc" ]],
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server_processing1.php",
"aLengthMenu": [
[10, 20,40, -1],
[10, 20,40, "All"]],
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [18,19,20,21] }
],
"sPaginationType": "full_numbers",
"sDom": 'TRC<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"copy",
{
"sExtends": "csv",
"sTitle": "exportcost"
},
{
"sExtends": "xls",
"sTitle": "exportcost"
},
{
"sExtends": "pdf",
"sTitle": "exportcost"
},
"print"
],
"sSwfPath": "jquery/TableTools/media/swf/copy_csv_xls_pdf.swf"
},
"fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
/*
* Calculate the total market share for all browsers in this table (ie inc. outside
* the pagination)
*/
var iTotalMarket = 0;
var sum = 0;
var minos = 0;
for ( var i=0 ; i
on localhost wamp this work correctly
[code] aoData.push( { "name": "COMPANY", "value": $('#COMPANY').val() } );[/code]
online not working
this is my code
[code] var oTable;
$(document).ready(function() {
oTable = $('#example').dataTable( {
"aaSorting": [[ 1, "desc" ]],
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server_processing1.php",
"aLengthMenu": [
[10, 20,40, -1],
[10, 20,40, "All"]],
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [18,19,20,21] }
],
"sPaginationType": "full_numbers",
"sDom": 'TRC<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"copy",
{
"sExtends": "csv",
"sTitle": "exportcost"
},
{
"sExtends": "xls",
"sTitle": "exportcost"
},
{
"sExtends": "pdf",
"sTitle": "exportcost"
},
"print"
],
"sSwfPath": "jquery/TableTools/media/swf/copy_csv_xls_pdf.swf"
},
"fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
/*
* Calculate the total market share for all browsers in this table (ie inc. outside
* the pagination)
*/
var iTotalMarket = 0;
var sum = 0;
var minos = 0;
for ( var i=0 ; i
This discussion has been closed.
Replies
[code]
change "type": "GET" to "type": "POST"
[/code]