Invalid JSON response For Ajax.Reload()
Invalid JSON response For Ajax.Reload()
elahi1mahdi
Posts: 9Questions: 5Answers: 0
When I Use delete , Insert , Update , Edit Actions in my project with ajax and jqurey in asp.net core I Want Reload the data table that I Use this Code For Reload it But Show error
invalid json response. for more information about this error please see http //datatables.net/tn/1
I Use This Code
$('#Mytable').DataTable().ajax.reload();
How do i write ?
This discussion has been closed.
Answers
Hi @elahi1mahdi ,
The link in the error (http //datatables.net/tn/1) is the best place to start - it'll offer some suggestions on what to look for and what to try. Your usage for
ajax.reload()
is fine, so the problem is likely to be that the data being returned from the search doesn't match what's expected.If you have no luck with that link, we're happy to take a look, but it would help, as per the forum rules, if you could link to a running test case showing the issue so we can offer some help. 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
it is not my answer,I Use ajax reload but not working @colin
Hi @elahi1mahdi ,
There isn't enough information to be able to advise. As I said, go through the suggestions in the error link, and if error continues, please provide a link to the page or to a test case.
Cheers,
Colin