Adding a row to the table with server-sided data

Adding a row to the table with server-sided data

sec12tst8r84sec12tst8r84 Posts: 4Questions: 1Answers: 0
edited January 2011 in General
Hello,
This is an amazing tool and it is simple to use yet it provides such beautiful outputs. I am trying to do what kstover did back in Oct of 2009. When a user adds a row to the table, the information will also get sent to the server. I understand that I should call a php script to add the row and then use fnDraw to redraw the table. Based upon what kstover posted:

[code]
var oTable;

$(document).ready(function() {
oTable = $('#people').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "include/php/table_server.php"
});
});

function fnClickAddRow() {
$.post("include/php/add_person.php", function(){ oTable.fnDraw();});
}
[/code]

When she did the post to the php, what kind of variables does DataTables send? Any help is greatly appreciated.
This discussion has been closed.