How to serialize selected checkbox value in every page?
How to serialize selected checkbox value in every page?
Hi, I would like to ask how to serialize selected check box value in every page? Below is my configuration:
[code]
$('#list-item').dataTable({
"sAjaxSource" : "${pageContext.request.contextPath}/parameter/item/list/json",
"sServerMethod" : "GET",
"bProcessing" : true,
"sAjaxDataProp" : "",
"aoColumns" : [
{"bSortable" : false, "sClass": "center",
"fnRender": function ( oObj ){
var stringCheckbox = "";
if(oObj.aData[0]!="1"){
stringCheckbox = "";
}
return stringCheckbox;
}
},
{"bSortable" : false, "sClass": "center"},
{"sClass": "text_align_left"},
{"sClass": "center"},
{"sClass": "center"},
],
"fnRowCallback" : function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {
var i = iDisplayIndexFull + 1;
var yesNo = "";
var activeInactive = "";
if(aData[3]=="Y"){
yesNo = "${yes}";
}else{
yesNo = "${no}";
}
if(aData[4]=="A"){
activeInactive = "${active}";
}else{
activeInactive = "${inactive}";
}
$('td:eq(1)', nRow).html("" + i + "");
$('td:eq(3)', nRow).html(yesNo);
$('td:eq(4)', nRow).html(activeInactive);
return nRow;
},
"sPaginationType" : "full_numbers",
});
[/code]
Your help are really appreciated :)
[code]
$('#list-item').dataTable({
"sAjaxSource" : "${pageContext.request.contextPath}/parameter/item/list/json",
"sServerMethod" : "GET",
"bProcessing" : true,
"sAjaxDataProp" : "",
"aoColumns" : [
{"bSortable" : false, "sClass": "center",
"fnRender": function ( oObj ){
var stringCheckbox = "";
if(oObj.aData[0]!="1"){
stringCheckbox = "";
}
return stringCheckbox;
}
},
{"bSortable" : false, "sClass": "center"},
{"sClass": "text_align_left"},
{"sClass": "center"},
{"sClass": "center"},
],
"fnRowCallback" : function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {
var i = iDisplayIndexFull + 1;
var yesNo = "";
var activeInactive = "";
if(aData[3]=="Y"){
yesNo = "${yes}";
}else{
yesNo = "${no}";
}
if(aData[4]=="A"){
activeInactive = "${active}";
}else{
activeInactive = "${inactive}";
}
$('td:eq(1)', nRow).html("" + i + "");
$('td:eq(3)', nRow).html(yesNo);
$('td:eq(4)', nRow).html(activeInactive);
return nRow;
},
"sPaginationType" : "full_numbers",
});
[/code]
Your help are really appreciated :)
This discussion has been closed.