DataTables works locally but breaks when running on apache server

DataTables works locally but breaks when running on apache server

kdublamkdublam Posts: 1Questions: 1Answers: 0

The library works beautifully when i run it locally on my computer. However, when I migrate it to our server in production, click any of the columns to sort will break the table. Leaving it empty until I refresh the page to repopulate the table again.

The data for my table is generated from a MySQL database. Both when running it locally and on the server. I have tried using the CDN as well as saving the files to the directory.

Answers

  • kthorngrenkthorngren Posts: 21,146Questions: 26Answers: 4,918

    Sounds like you might be using server side processing?

    If so then you will need to look at the response from the server script to see what is returned from the server when sorting. I would use the browser's developer tools to look at the response. Steps can be found here:
    https://datatables.net/manual/tech-notes/1

    Look at the browser's console for errors.

    Let us know what you find.

    Kevin

This discussion has been closed.