Tabel layout missing after copying code
Tabel layout missing after copying code
I took a copy of the code for one year (it was working fine), but when I run the copy of the code the layout or design of the table is missing. Database is connected, all data are there, but the layout of table is missing. My own css around the tabel is OK. I copied all files, so it should be the same, but it isn't. The debugger in consol comes back clean. The consol is clean. Any ideas?
This question has an accepted answers - jump to answer
Answers
Yup, link to a test case showing the issue so we can offer some help .
At the moment it could be virtually anything. Missing CSS is the most likely explanation, but that can't be debugged without a test case.
Allan
Thanks for your ansver. But it's private data protected by password. I have tried to put in the following lines, so that I was sure about CSS.
But with no change.
Possibly you can build a test case starting with this:
https://live.datatables.net/
Since the problem is not data related you can use the HTML table in the test case template. However if you want Ajax data you can use a template from this technote.
You might find the problem by building the test case
See if you are getting errors in the browser's console. They might be causing Javascript issue stopping the full Datatable initialization.
Kevin
Caught this message in console referring to line 1 in the file, which is <?php::
Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
What file? The CSS for you linked to appears fine.
It was the CSS file (datatable,min.css). Somehow upload of it didn't work at first. An extra upload of that specifik file and it all works. Thanks for your input.