server-side processing with POST example help
server-side processing with POST example help
Hi, I'm new to DataTables and I have a problem with adding a new column in the server-side processing with HTTP POST example.
I have 3 columns in the DataTable, 2 of which will be coming from my database. In the post.php file i've left the columns array as below, leaving a space for the third column.
[code]
$aColumns = array( 'partno', 'desc', ' ' );
[/code]
In the Optional Configuration section to add a column I then have the following;
[code]
$sOutput .= '';
[/code]
Nothing is happening and the table is stuck at the "processing..." stage. Can someone direct me to the correct format I should use for the optional configuration? Assuming that is what I'm doing wrong.
I have 3 columns in the DataTable, 2 of which will be coming from my database. In the post.php file i've left the columns array as below, leaving a space for the third column.
[code]
$aColumns = array( 'partno', 'desc', ' ' );
[/code]
In the Optional Configuration section to add a column I then have the following;
[code]
$sOutput .= '';
[/code]
Nothing is happening and the table is stuck at the "processing..." stage. Can someone direct me to the correct format I should use for the optional configuration? Assuming that is what I'm doing wrong.
This discussion has been closed.
Replies
I have a suspicion that the space in the aColumns array is breaking things...
Allan