JSON Data from server could not be parsed error when page is first loaded

JSON Data from server could not be parsed error when page is first loaded

lyndonwillyndonwil Posts: 40Questions: 5Answers: 0
edited February 2014 in DataTables 1.9
I have a strange issue with my datatable. Basically, when it is first run after opening a browser, i get this error :

datatables warning : JSON data from server could not be parsed.

If i click OK and then refresh the page, everything works fine and continues to work fine.

I am guessing this is some kind of timing issue in that the data has loaded well before the page ?

Replies

  • lleminglleming Posts: 6Questions: 0Answers: 0
    firebug and look for first response from server
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Yup - the error more or less means what it says on the tin! There is no timing error, the data being loaded form the server is not valid JSON.

    Allan
  • lyndonwillyndonwil Posts: 40Questions: 5Answers: 0
    Guys thanks for the response.. Absolutely right, it was an issue with a session id !

    Thank you
This discussion has been closed.