This is the solution I found to have the actual value rather than a serialized representation input into DT.
Everything is working now after this long slug. I will go out and celebrate!!
Thanks again for your patience.
[code]
$(document).ready(function() {
var str = [];
oTable = $("#myTable").dataTable({
"fnServerParams": function (aoData) {
aoData.push({ name:'str', value:str });}
});
Replies
> The .serialize() method creates a text string in standard URL-encoded notation.
So the name prefixed is completely expected. That is how jQuery works. As I say, nothing to do with DataTables.
Allan
This is the solution I found to have the actual value rather than a serialized representation input into DT.
Everything is working now after this long slug. I will go out and celebrate!!
Thanks again for your patience.
[code]
$(document).ready(function() {
var str = [];
oTable = $("#myTable").dataTable({
"fnServerParams": function (aoData) {
aoData.push({ name:'str', value:str });}
});
$("#filter").change(function(){
str=[];
$('#filter :checked').each(function() {
str.push($(this).val());
});
oTable.fnReloadAjax("filter_prange.php");
});
});
[/code]