Post with NON server side datatable: only active page is send
Post with NON server side datatable: only active page is send
When I use datatables (NON server side) with some radio buttons on each row, and I try to do a post, I only receive the status of the radiobuttons in the active page of the datatable.
(In Firefox, when I ask the page source of the page with datatable, all of the rows are included also the non visible pages of the datatable).
Can I get the status of the radio buttons from all the rows via POST?
Here is my code
(As you can see in the code, I'am dutch speaking, excuse me for the writing errors in this topic)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
PIAVO dataVerwerken
<!-- jQuery datepicker tweede versie -->
var oTable;
$(document).ready(function(){
oTable = $('#importdetails').dataTable({
"bJQueryUI": true,
"bPaginate": true,
"bSort": false,
"sPaginationType": "full_numbers",
"bAutoWidth": true,
"oLanguage":
{
"sLengthMenu": "_MENU_ items per scherm",
"sSearch": "Snel zoeken:",
"sInfoEmpty": "0 tot 0 van 0 rijen",
"sInfo": "_START_ tot _END_ van _TOTAL_ rijen",
"sInfoFiltered": "(gefilterd uit _MAX_ rijen)",
"sZeroRecords": "Geen resultaten gevonden",
"oPaginate":
{
"sFirst": "Eerste",
"sLast": "Laatste",
"sNext": "Volgende",
"sPrevious": "Vorige"
}
}
} );
});
Data Verwerken
Info
Reden
Uitstellen
Negeren
Wijzigen
<?php
for ($tel = 0; $tel < count($_SESSION['tabel_importdetails']); $tel++) {
$importdetail = $_SESSION['tabel_importdetails'][$tel];
echo "";
echo "";
echo "Naam: ".$importdetail['NAAM']; echo "
";
echo "";
echo "";
echo "";
if (($importdetail['B_Foutief'] == 'on') OR
($importdetail['B_Nieuw'] != 'on' AND
$importdetail['B_Verwijderen'] != 'on' AND
$importdetail['B_Gewijzigd'] != 'on' AND
$importdetail['B_LeidinggevendeGewijzigd'] != 'on' AND
$importdetail['B_LeidinggevendeKoppelen'] != 'on' AND
$importdetail['B_LeidinggevendeNieuw'] != 'on' AND
$importdetail['B_LocatieKoppelen'] != 'on' AND
$importdetail['B_LocatieNieuw'] != 'on' AND
$importdetail['B_ParentGewijzigd'] != 'on')) {
echo "";
echo "";
echo "";
}
else {
echo "";
echo "";
echo "";
}
echo "";
}
?>
<?php
if(isset($melding))
{
?>
<?php echo "$melding"; ?>
<?php
}
?>
(In Firefox, when I ask the page source of the page with datatable, all of the rows are included also the non visible pages of the datatable).
Can I get the status of the radio buttons from all the rows via POST?
Here is my code
(As you can see in the code, I'am dutch speaking, excuse me for the writing errors in this topic)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
PIAVO dataVerwerken
<!-- jQuery datepicker tweede versie -->
var oTable;
$(document).ready(function(){
oTable = $('#importdetails').dataTable({
"bJQueryUI": true,
"bPaginate": true,
"bSort": false,
"sPaginationType": "full_numbers",
"bAutoWidth": true,
"oLanguage":
{
"sLengthMenu": "_MENU_ items per scherm",
"sSearch": "Snel zoeken:",
"sInfoEmpty": "0 tot 0 van 0 rijen",
"sInfo": "_START_ tot _END_ van _TOTAL_ rijen",
"sInfoFiltered": "(gefilterd uit _MAX_ rijen)",
"sZeroRecords": "Geen resultaten gevonden",
"oPaginate":
{
"sFirst": "Eerste",
"sLast": "Laatste",
"sNext": "Volgende",
"sPrevious": "Vorige"
}
}
} );
});
Data Verwerken
Info
Reden
Uitstellen
Negeren
Wijzigen
<?php
for ($tel = 0; $tel < count($_SESSION['tabel_importdetails']); $tel++) {
$importdetail = $_SESSION['tabel_importdetails'][$tel];
echo "";
echo "";
echo "Naam: ".$importdetail['NAAM']; echo "
";
echo "";
echo "";
echo "";
if (($importdetail['B_Foutief'] == 'on') OR
($importdetail['B_Nieuw'] != 'on' AND
$importdetail['B_Verwijderen'] != 'on' AND
$importdetail['B_Gewijzigd'] != 'on' AND
$importdetail['B_LeidinggevendeGewijzigd'] != 'on' AND
$importdetail['B_LeidinggevendeKoppelen'] != 'on' AND
$importdetail['B_LeidinggevendeNieuw'] != 'on' AND
$importdetail['B_LocatieKoppelen'] != 'on' AND
$importdetail['B_LocatieNieuw'] != 'on' AND
$importdetail['B_ParentGewijzigd'] != 'on')) {
echo "";
echo "";
echo "";
}
else {
echo "";
echo "";
echo "";
}
echo "";
}
?>
<?php
if(isset($melding))
{
?>
<?php echo "$melding"; ?>
<?php
}
?>
This discussion has been closed.
Replies
If I set bPaginate = "false" then I get all the information I need... (but everything - in my case 2502 rows - are shown on one screen).
I actually want that only displayed rows get sent, but cant tell how your table is different in to achieve that.