bSortable not working under IE8 and lower
bSortable not working under IE8 and lower
Hi,
when I use the following code into my table definition, IE8 and lower wont show any data. It seems as the serverside script is not even called. When I remove the aoColumns everything works fine on IE8 also.
[code]
var orderTable=null;
$(document).ready(function()
{
$('#orderTable tbody').on( 'click', 'tr', function ()
{
var data = orderTable.fnGetData( this );
editOrder(data[0]);
});
orderTable=$('#orderTable').dataTable(
{
"sScrollY": $('#orderContent').height()-74-26,
"sScrollX": $('#orderContent').width(),
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "./datasource/ge_get_order.php",
"bStateSave": true,
"fnRowCallback": function( nRow, aData, iDisplayIndex )
{
$('td', nRow).attr('nowrap','nowrap');
return nRow;
},
"aoColumns":
[
null,
null,
null,
null,
null,
{ "bSortable": false },
{ "bSortable": false },
],
"fnCreatedRow": function( nRow, aData, iDataIndex )
{
var start=aData[2];
var date=start.substr(8, 2)+"."+start.substr(5, 2)+"."+start.substr(0, 4);
if(date!=undefined)
{
$('td:eq(2)', nRow).html( date );
}
var end=aData[3];
var date=end.substr(8, 2)+"."+end.substr(5, 2)+"."+end.substr(0, 4);
if(date!=undefined)
{
$('td:eq(3)', nRow).html( date );
}
}
});
[/code]
Regards
Claus
when I use the following code into my table definition, IE8 and lower wont show any data. It seems as the serverside script is not even called. When I remove the aoColumns everything works fine on IE8 also.
[code]
var orderTable=null;
$(document).ready(function()
{
$('#orderTable tbody').on( 'click', 'tr', function ()
{
var data = orderTable.fnGetData( this );
editOrder(data[0]);
});
orderTable=$('#orderTable').dataTable(
{
"sScrollY": $('#orderContent').height()-74-26,
"sScrollX": $('#orderContent').width(),
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "./datasource/ge_get_order.php",
"bStateSave": true,
"fnRowCallback": function( nRow, aData, iDisplayIndex )
{
$('td', nRow).attr('nowrap','nowrap');
return nRow;
},
"aoColumns":
[
null,
null,
null,
null,
null,
{ "bSortable": false },
{ "bSortable": false },
],
"fnCreatedRow": function( nRow, aData, iDataIndex )
{
var start=aData[2];
var date=start.substr(8, 2)+"."+start.substr(5, 2)+"."+start.substr(0, 4);
if(date!=undefined)
{
$('td:eq(2)', nRow).html( date );
}
var end=aData[3];
var date=end.substr(8, 2)+"."+end.substr(5, 2)+"."+end.substr(0, 4);
if(date!=undefined)
{
$('td:eq(3)', nRow).html( date );
}
}
});
[/code]
Regards
Claus
This discussion has been closed.
Replies
didn't seen the redundant ","
Regards
Claus