Problems on fnClearTable

Problems on fnClearTable

RafactionRafaction Posts: 1Questions: 0Answers: 0
edited October 2011 in General
Hello,

I've a problem when i tried to cleartable with the function fnClearTable.
When I debug with firefox I got this error: oSettings is null

The code is below:
[code]
$.get($("#actionListDetails").val() + "?idLocal=" + _idLocal + "&data=" + _dataID, function (objectReturn) {
var nNewRow = $("#table1").dataTable().fnOpen(nTr, '', "detailsRow" + _dataID);
nNewRow.className = "detailsRow" + _dataID;
loadSubTable(objectReturn);
});

function loadSubTable(objectReturn) {
var tableID = _dataID + "table2";
var htmlTable;
htmlTable = "";
htmlTable += "";
htmlTable += "";
htmlTable += "";
htmlTable += "Family";
htmlTable += "NIS";
htmlTable += "Name";
htmlTable += "Date1";
htmlTable += "Date2";
htmlTable += "";
htmlTable += "";
htmlTable += "";
htmlTable += "";

$(".detailsRow" + _dataID).html();
$(".detailsRow" + _dataID).html(htmlTable);

$(tableID).dataTable({"bFilter": false,
"bSort": true,
"bAutoWidth": false,
"iDisplayLength": 15,
"sPaginationType": "full_numbers" });
$(tableID).dataTable().fnClearTable(); //->ERROR: oSettings is null
[/code]

What can be this? I can't see any error...

Thanks
This discussion has been closed.