Datatables - 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode.

Datatables - 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode.

KieranColleyKieranColley Posts: 1Questions: 1Answers: 0

Hi there, I'm currently designing a program in MVC5 ASP.Net and utilising data tables to display the data and trying to get it to use server side processing. Currently It seems to work on first load but callback then throws the exception: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them. Any ideas on how to fix this? I need it to get the data from the html table again due to MVC loading data into the table that way after the callback, I'm new to data tables so any help would be appreciated.

var table = $('#Example').DataTable();
$(document).ready(function () {
    $('#Example').DataTable({
        "cell-border": true,
        "paging": true,
        "processing": false,
        "deferLoading": true,
        "deferRender": true,
        "scrollCollapse": true,
        "DisplayLength": 10,
        "cell-border": true,
        "serverSide": true,
        "ordering": false,
        "searching": false,
        "recordsTotal": 130000,
        "recordsFiltered": 130000,
        "ajax": function (data, callback, settings) {
            debugger;
            var out = table;
            for (tableData in table) {
                 out.push();
            }
            debugger;
            setTimeout(function () {
                debugger;
                callback({
                    "draw": out.draw(),
                    "data": out,
                    "recordsTotal": 130000,
                    "recordsFiltered": 130000
                });
            }, 50);
        },
        "scrollY": 200,
        "scroller": {
            "loadingIndicator": true
        },
    });
});

Answers

  • allanallan Posts: 50,863Questions: 1Answers: 7,624 Site admin

    Can you give me a link to a page showing the error please?

    Allan

Sign In or Register to comment.