datatables warning: table id - invalid json response

datatables warning: table id - invalid json response

KmusselmanKmusselman Posts: 1Questions: 1Answers: 0

Hello everybody, it would seem that instead of receiving a json response, what's being returned is simply html. If anybody could shine some light on my situation, it would be greatly appreciated. If more information is required, I'm more than happy to comply.

Debugger Code: obaxov

This question has an accepted answers - jump to answer

Answers

  • jr42.gordonjr42.gordon Posts: 305Questions: 2Answers: 49
    edited June 2016

    Check out Technical notes

    We would need a link to a working example with your issue to be able to help as per forum rules

  • Tom (DataTables)Tom (DataTables) Posts: 139Questions: 0Answers: 26
    Answer ✓

    js42.gordan is correct as we normally require a test case, but in this case the debugger has given enough information to see what the problem is.

    The problem is you don't have the ajax option so it doesn't know where to request the data from meaning its actually requesting it's own page.

    Thanks

    Tom

This discussion has been closed.