Server-side newbie problelm

Server-side newbie problelm

DonEDonE Posts: 2Questions: 0Answers: 0
edited November 2012 in General
Hi. I'm just trying out DataTables and server-side processing. I created a server_side.html and processing.php files almost exactly like the examples, adding in my database server, username, password, and db info. When I try to execute it, I just get a popup stating

DataTables warning (table id = 'table_id'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.

In Firebug, its failing in jquery-1.8.2.js, in parseJSON, at "return window.JSON.parse ( data );" The funny thing is, "data" looks to be simply my "php" file text, not any returned JSON from it.

I'm sure I'm doing something stupid, and this is a simple error, but I can't figure out what it is. Any help?

Thanks!

Don

Replies

  • girishmrgirishmr Posts: 137Questions: 0Answers: 0
    Can you share your scripts please ?
  • DonEDonE Posts: 2Questions: 0Answers: 0
    Actually, the same exact thing happens if I try running the example "examples/server_side/server_side.html" from the unzipped "DataTables-1.9.4.zip" file. That uses "examples/server_side/scripts/server_processing.php", which doesn't have any db or login info, so I would expect it to fail, but not in this manner.

    I just seems like the PHP file isn't getting run, rather it's trying to parse it as returned JSON.
  • girishmrgirishmr Posts: 137Questions: 0Answers: 0
    If PHP module is not getting executed in all likelyhood there is an issue in your java script. Have you tried to debug using Dev tools / Firebug? If so what is the error, if any you are getting?
This discussion has been closed.