Uncaught TypeError: a is null

Uncaught TypeError: a is null

ArnaldoFrArnaldoFr Posts: 1Questions: 1Answers: 0
edited November 2021 in DataTables 1.10

Debugger code (debug.datatables.net):

    var patentes = $("#patentes").val();
    var ramos = $("#ramos").val();
    var asecs = $("#asecs").val();
    var vaga = $("#vaga").val();


    $('#lista').dataTable({
        "destroy": true,  

        "order":[[4, "desc"]],
        "pageLength": 25,   
        "responsive": true, "lengthChange": true, "autoWidth": false,  "ordering": true,  "searching": true,  "info": true,  "paging": true,


        "processing": true,
        "ajax":  {
        "url": "teste_fetch.php",
        "type": "POST",

        "data": {patentes, ramos, asecs, vaga }},
        "columns": [
            {data : 'MIL_NIP'},
            {data: 'POSTO_ABREV'},
            {data: 'MIL_NOME'},
            {data: 'MIL_CARGO'},
            {data: 'TEMPO'},
            {data: 'PROFILE'} ,
            {data: 'ADD'} 
        ]
})

Error messages shown: Uncaught TypeError: a is null
Description of problem: I get this error whenever i select more the 170 rows from my database

Answers

  • colincolin Posts: 15,158Questions: 1Answers: 2,587

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.