Server side not showing data

Server side not showing data

GuruGuru Posts: 8Questions: 0Answers: 0
edited August 2010 in General
I have tested to populate data in table with firebug, in firebug it is showing proper json data as shown below but loading into table.

{"sEcho": 0,"iTotalRecords": 3, "iTotalDisplayRecords": 3, "aaData": [ ["admin","1,2,3,4,5,6,7,8"],["user1","3,4,5"],["anisbudye@gmail.com","3,4,5,6,7,8"]] }

what is going wrong?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The sEcho parameter looks wrong. It should never be 0 for server-side processing - it should increment by one on every draw. Check that you are passing back what DataTables sends (cast as an integer for security reasons!).

    Allan
  • GuruGuru Posts: 8Questions: 0Answers: 0
    Hi Allan,
    Thank for reply.
    it is resolved. Server side file was not in correct path.
  • GuruGuru Posts: 8Questions: 0Answers: 0
    Allan,
    In my local server datatable is working fine.
    but when i upload on web server and try to load the page its shows error ->
    Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) and tbody shows only Loading data from server. no records are loading.
    What is this error?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The error suggests that there is a misconfiguration in your MySQL server. Perhaps it's not running or the socket path is wrong or something like that. I'd suggest Googling for that error or talking to your sysadmin.

    Allan
  • GuruGuru Posts: 8Questions: 0Answers: 0
    Thank you for your reply.
    the config file was not in same directory.
This discussion has been closed.