how to submit to form?
how to submit to form?
![sjm2000](https://secure.gravatar.com/avatar/c994552b64f67b341bcb2bfb84b6f762/?default=https%3A%2F%2Fvanillicon.com%2Fc994552b64f67b341bcb2bfb84b6f762_200.png&rating=g&size=120)
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
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.