Datatables not loading, Issue in IE8 Only

Datatables not loading, Issue in IE8 Only

thinkerthinker Posts: 2Questions: 1Answers: 0
edited September 2014 in Free community support

Hi Allan,

Thanks for the Great Plugin, it is really awesome. I have implemented code very successfully on my website and it is working perfectly except in IE8.

I am using server side and using dataTables version 1.10.1 for this and Jquery version 1.7.1

The issue is I am getting an error:

'error' is null or not an object. I checked the datatables.js File and found the potential line here

var baseAjax = {
"data": data,
"success": function (json) {
var error = json.error || json.sError;
if ( error ) {
oSettings.oApi._fnLog( oSettings, 0, error );
}

            oSettings.json = json;
            _fnCallbackFire( oSettings, null, 'xhr', [oSettings, json] );
            fn( json );
        },

Specially this line -

var error = json.error || json.sError;

i alerted error and it shows undefined. undefined is also coming on IE9, IE10, 11 and firefox and chrome, but they seems to ignore it and render it.

here is the code i am using

     $(document).ready(function() {
      setTimeout( function () { oTable.fnAdjustColumnSizing(); }, 20 );     
         setTimeout(function(){
        $('##beforeAnimate').css('display','none');
    },3000)
    oTable = $('##user').dataTable( {
        "scrollY": 350,
        "dom": "rtiS",
        "deferRender": true,
        "bAutoWidth": false,
        "bFilter": false,
        "bSort": true,
        "oLanguage": {
            "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
            "sInfoEmpty": "Showing 0 to 0 of 0 entries",
            "sInfoFiltered": ""
        },
        "scrollX": "100",
        "iDisplayLength":50,
        "bServerSide": true,
        "sAjaxSource": "getdata.cfm",
        "fnDrawCallback": function () {
            $('a.fancybox').click(function(){
                $('.fancybox').fancybox({
                    'width':800,
                    'height':650,
                    'type':'iframe',
                    'autoScale':'false',
                    'iframe': {
                        'preload': false 
                    }

                });
            });
        },
        "scroller": {
            loadingIndicator: true
        }
    });

Answers

This discussion has been closed.