invalid json response

invalid json response

stutstut Posts: 7Questions: 3Answers: 0
edited November 2019 in Free community support

result of query i am using
json encoded data

my html code

Account# Status Assigned_To

jquery
function fetch_data()
{
var dataTable = $('#Acc_data').DataTable({
"bPaginate": false,
"info": false,
"processing" : true,
"serverSide" : true,
"order" : [],
"ajax" : {
url:"fetch_acc.php",
type:"POST"
}
});
}
i dont know where is the problem. ihave searched alot from 2 days but didnt find any solution. plz help me . i will be thakful to u

This question has an accepted answers - jump to answer

Answers

  • stutstut Posts: 7Questions: 3Answers: 0

    '#Acc_data' is the table id i am giving to my table

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921

    Did you follow the troubleshooting steps at the link provided in the error?
    https://datatables.net/manual/tech-notes/1

    What were the results of using the jsonlint site?

    Its hard to tell from your screenshots what is returned. Maybe you can post the response found at the browser's Developer Tools > Network > Response tab.

    Kevin

  • stutstut Posts: 7Questions: 3Answers: 0

    the php file contains json is showing the output. but the page where i am fetching that json data is not showing any json data. i have seen in developer tools -> network-> XHR

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921
    Answer ✓

    Sounds like the PHP script is not returning the response. I would start by checking the server for errors.

    Kevin

  • stutstut Posts: 7Questions: 3Answers: 0

    yes i found the solution

This discussion has been closed.