I have this dataTables
, where prints out the datas with Pagination
true for dataTables
and the table that can be submitted through form. The problem it cant get all the data from the other pages or when searching.
$('#uploadClicked').click(function () {
var table = $('#dataTable-ageGroup').DataTable();
var data = table.$('input, select').serialize();
var json = JSON.stringify(data);
document.getElementById('json').setAttribute('value', json);
alert("The following data would have been submitted to the server:
nn" + data);
document.getElementById('UploadDb').submit(); return false;});
and so far this is what my form submits into the servlet
, how can I make this data into an Object
?
location=Barangay+1&ageGroup=All+Ages&bothSexes=2197&male=1086&female=1111&location=Barangay+1&ageGroup=Under+1&bothSexes=42&male=17&female=25&location=Barangay+1&ageGroup=1+-+4&bothSexes=169&male=88&....
Aucun commentaire:
Enregistrer un commentaire