searching a datatable results in invalid json response error how to overcome this ?
searching a datatable results in invalid json response error how to overcome this ?
vaishnavkoka
Posts: 132Questions: 23Answers: 1
I have used default search option for the datatable, but while making a search it gives an error if there is no data present with respect to that of value searched for
example 1 : search input "koka"
output: it displays the records which consists "koka" in their column
example 2: search input "kokaa"
output : it gives an invalid json response error
My "ssp.class.php" file(ajax supports the searching operations)
here is my ssp.class.php code
This discussion has been closed.
Answers
Hi @vaishnavkoka ,
It looks like you've modified that "ssp.class.php" file. In the original empty matches are returned, so it would be worth doing a diff on the two files.
Cheers,
Colin
Hi @colin ,
yeah...!! I did modifications but now i tried with the "ssp.class.php" suggested by you and i got these error, i tried debugging it, but failed to do so.
please let me know where did i go wrong?
Thanks
Koka