Tabel layout missing after copying code

Tabel layout missing after copying code

cha59cha59 Posts: 87Questions: 23Answers: 0

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

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Any ideas?

    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

  • cha59cha59 Posts: 87Questions: 23Answers: 0

    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.

    <link href="https://cdn.datatables.net/v/dt/dt-1.13.10/datatables.min.css" rel="stylesheet">
    <script src="https://cdn.datatables.net/v/dt/dt-1.13.10/datatables.min.js"></script>
    

    But with no change.

  • kthorngrenkthorngren Posts: 20,425Questions: 26Answers: 4,794
    edited February 14

    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 :smile:

    See if you are getting errors in the browser's console. They might be causing Javascript issue stopping the full Datatable initialization.

    Kevin

  • cha59cha59 Posts: 87Questions: 23Answers: 0

    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

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    What file? The CSS for you linked to appears fine.

  • cha59cha59 Posts: 87Questions: 23Answers: 0

    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.

Sign In or Register to comment.