Uncaught TypeError: Cannot read property 'splice' of undefined
Uncaught TypeError: Cannot read property 'splice' of undefined
malko7
Posts: 2Questions: 1Answers: 0
Hi, I dont know why I have this error.
I copied the same example from page, and only I changed the initialization of the datable.
Here is my code.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This is what the JSFiddle echo serivce is returning:
Which isn't the expected format for server-side processing. You could JSON.stringify that string, it would still be missing the
draw
andrecordsTotal
, etc, parameters that are required.Allan
Thanks for answer, but I have a doubts:
JSON.stringify or JSON.parse?
Why return a string and no a json object?
Sorry yes - you should JSON.parse the string :-).
Allan