Problem running ajax method
Problem running ajax method
HeavyChevy
Posts: 7Questions: 0Answers: 0
Hello Allan and all,
I have seen this problem in the forums but didn't see an answer. When I run my PhP script under firebug, I get the following error:
[quote]
oColumn.asSorting is undefined
oSettings.aaSorting[i][1] = oColumn.asSorting[0];
[/quote]
my table initialization is as follows:
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": false,
"sAjaxSource": "get_table_info.php",
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "more_data", "value": "my_value" } );
}
} );
} );
[/code]
I am trying to dynamically create a table by passing its name from a select (drop-down) box and I see that the script is properly getting the table name. Is this possible using datatables? I populate the select box using mysql (show tables) and build the column list using mysql (describe table) on the selected table name. All suggestions will be greatly appreciated!
I have seen this problem in the forums but didn't see an answer. When I run my PhP script under firebug, I get the following error:
[quote]
oColumn.asSorting is undefined
oSettings.aaSorting[i][1] = oColumn.asSorting[0];
[/quote]
my table initialization is as follows:
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": false,
"sAjaxSource": "get_table_info.php",
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "more_data", "value": "my_value" } );
}
} );
} );
[/code]
I am trying to dynamically create a table by passing its name from a select (drop-down) box and I see that the script is properly getting the table name. Is this possible using datatables? I populate the select box using mysql (show tables) and build the column list using mysql (describe table) on the selected table name. All suggestions will be greatly appreciated!
This discussion has been closed.