Datatables not displaying the data returned using server side processing

Datatables not displaying the data returned using server side processing

mkadusalemkadusale Posts: 10Questions: 0Answers: 0
edited June 2012 in General
I tried using this sample
http://datatables.net/release-datatables/examples/server_side/server_side.html
to create a datatables using server side processing

I created sdata.php to get data from the server
http://pastie.org/4084535

I also created sdatatables.php to show the data inside datatables
http://pastie.org/4084534

When I access sdata.php I got the data
http://pastie.org/4084556

But has a "Notice: Undefined index: sEcho"
So I commented out line 148 in sdata.php and no error is displayed anymore

I tried accessing sdatatables.php and I get a javascript error inside jquery.dataTables.min.js
"r is undefined" Line 125

Any idea on how to fix this? Did I miss something?

Thanks in advance.

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Can you run your table through the DataTables debugger please?

    Allan
  • mkadusalemkadusale Posts: 10Questions: 0Answers: 0
    Hope this is what you are requesting

    http://debug.datatables.net/acofiz
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    The debugger is saying that no XHR has been made - so that might well mean that you have a 500 error on the server.

    I'd suggest looking at your server's error log to see what it says.

    Allan
This discussion has been closed.