Problem with tabletools js file...
Problem with tabletools js file...
raj44
Posts: 2Questions: 0Answers: 0
Hi all,
I am getting following error consistently in tabletools javascript file:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8)
Timestamp: Tue, 25 Sep 2012 05:53:09 UTC
Message: 'this.s.dt.aoData[...]._DTTT_selected' is null or not an object
Line: 376
Char: 3
Can some one pls tell me why this error is coming and how do I go about rectifying it?
Following is my datatables code:
[code]
$("#testtable").dataTable({
"aaData": njsonObj,
"aoColumnDefs": [{"bVisible": false, "aTargets": [0,1,2,14,15,16,18,19,20,21,22,23,24,25] }],
"bDestroy": true,
"sPaginationType": "full_numbers",
"fnCreatedRow": function(){
document.getElementById('divPage').style.display='block';
document.getElementById('divLoading').style.display='none';
//document.getElementById('lblNoRecords').style.display='none';
},
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "single",
"fnRowSelected": function (node)
{
var oTable = $('#testtable').dataTable();
var oSettings = oTable.fnSettings();
var iCurrentPage = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
selectedRowIndex=$(node).closest('tr')[0].sectionRowIndex;//this gives selected row index from the data table
/* $.ajax( {
//"url":"/sample.php",
"data": [
{ "value":sampleData}
],
"success": alert("hello"),
"dataType": "json",
"type": "POST",
"cache": false,
"error": function ()
{
//alert( "Error detected when sending table data to server" );
}
} );*/
}
}
});
[/code]
I am getting following error consistently in tabletools javascript file:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8)
Timestamp: Tue, 25 Sep 2012 05:53:09 UTC
Message: 'this.s.dt.aoData[...]._DTTT_selected' is null or not an object
Line: 376
Char: 3
Can some one pls tell me why this error is coming and how do I go about rectifying it?
Following is my datatables code:
[code]
$("#testtable").dataTable({
"aaData": njsonObj,
"aoColumnDefs": [{"bVisible": false, "aTargets": [0,1,2,14,15,16,18,19,20,21,22,23,24,25] }],
"bDestroy": true,
"sPaginationType": "full_numbers",
"fnCreatedRow": function(){
document.getElementById('divPage').style.display='block';
document.getElementById('divLoading').style.display='none';
//document.getElementById('lblNoRecords').style.display='none';
},
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "single",
"fnRowSelected": function (node)
{
var oTable = $('#testtable').dataTable();
var oSettings = oTable.fnSettings();
var iCurrentPage = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
selectedRowIndex=$(node).closest('tr')[0].sectionRowIndex;//this gives selected row index from the data table
/* $.ajax( {
//"url":"/sample.php",
"data": [
{ "value":sampleData}
],
"success": alert("hello"),
"dataType": "json",
"type": "POST",
"cache": false,
"error": function ()
{
//alert( "Error detected when sending table data to server" );
}
} );*/
}
}
});
[/code]
This discussion has been closed.