how to submit to form?

how to submit to form?

sjm2000sjm2000 Posts: 1Questions: 0Answers: 0
edited October 2010 in TableTools
Hello,

I am quite new to Datatable and very much amazed by its power. However i am not able to do a simple task like posting data to server. I dont use ajax etc. Plain server side processing.

If i submit it will submit only the "current page elements". Please find below my code.
[code]
var oTable;

/* Initialise the table with the required column sorting data types */
$(document).ready(function() {

$('#example').dataTable( {
"sPaginationType": "full_numbers",
"aaSorting": [[ 5, "desc" ]],
"aoColumns": [
{ "sSortDataType": "_all" },
{ "sSortDataType": "_all" },
{ "sSortDataType": "_all" },
{ "sSortDataType": "_all" },
{ "sSortDataType": "_all" },
{ "sSortDataType": "dom-checkbox" }
]
} );
$('#billselect').submit( function() {
var sData = $('input', oTable.fnGetNodes()).serialize();
alert( "The following data would have been submitted to the server: \n\n"+sData );
document.billselect.action=sData;
document.billselect.submit();
return false;
} );
oTable = $('#example').dataTable();
} );

[/code]
Can you please help me?

Thanks in advance

Sjm
This discussion has been closed.