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 ?

vaishnavkokavaishnavkoka 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

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    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

  • vaishnavkokavaishnavkoka Posts: 132Questions: 23Answers: 1

    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

This discussion has been closed.