Stuck at "dataTablesHelper.js:340 Uncaught TypeError: window[src] is not a function"

Stuck at "dataTablesHelper.js:340 Uncaught TypeError: window[src] is not a function"

tablytably Posts: 2Questions: 1Answers: 0
edited October 7 in Free community support

Recently I was working on a project with dt, everything was working fine and the day after my application wasn't working anymore, I think there was an update (maybe Windows ?) but I'm not sure, the console says :

Uncaught TypeError: window[src] is not a function dataTablesHelper.js:340
at dataTablesHelper.js:340:27
at jquery.dataTables.js:2606:12
at oCol.fnGetData (jquery.dataTables.js:2080:5)
at _fnGetCellData (jquery.dataTables.js:2498:28)
at _fnCreateTr (jquery.dataTables.js:3116:22)
at _fnAddData (jquery.dataTables.js:2423:4)
at _fnAjaxUpdateDraw (jquery.dataTables.js:4128:4)
at jquery.dataTables.js:3973:6
at callback (jquery.dataTables.js:3865:4)
at Object.success (personal.core.js:17:13)

I've been trying to find the problem but can't find anything I'm stuck at the moment, I'd appreciate if someone could help me, thank you.

Answers

  • kthorngrenkthorngren Posts: 21,449Questions: 26Answers: 4,975

    I'm not sure what window[src] is. What is on line 340 of dataTablesHelper.js?

    I would start debugging by placing a browser breakpoint on line 340.

    Please post a link to your page or test case replicating the issue so we can help debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • tablytably Posts: 2Questions: 1Answers: 0

    It's from the function :

    function getRenderFunction(src, param) {
    return function (data, type, full, meta) {
    return window[src](data, type, full, meta, param); <-- Line 340
    };
    }

  • kthorngrenkthorngren Posts: 21,449Questions: 26Answers: 4,975

    I guess the thing to do is to figure out what window[src] is supposed to be. Its not from Datatables but something specific to your solution.

    Kevin

Sign In or Register to comment.