lower sorting arrow

lower sorting arrow

mfeskemfeske Posts: 23Questions: 2Answers: 0

Hello,
I have a problem with datatables. Unfortunately I will not see the lower sorting arrow. What could that be?

http://bootstrap4.allmendeweg.de/test_tabelle_datatable.php

Answers

  • kthorngrenkthorngren Posts: 21,300Questions: 26Answers: 4,945

    Likely because you are loading this on line 18:

        <link href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" rel="stylesheet">
    

    And this on line 61

        <link href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css" rel="stylesheet">
    

    And they are conflicting. Seems like you want BS4 so try removing line 61.

    Kevin

  • mfeskemfeske Posts: 23Questions: 2Answers: 0

    nice ! thanks, now it works.

  • mfeskemfeske Posts: 23Questions: 2Answers: 0

    A other Problem, where must I load the //cdn.datatables.net/plug-ins/1.10.19/i18n/German.json

  • kthorngrenkthorngren Posts: 21,300Questions: 26Answers: 4,945

    I believe you are looking for language.url.

    Kevin

  • mfeskemfeske Posts: 23Questions: 2Answers: 0

    with:

    $(document).ready(function() { $('#example').DataTable(){ "language": { "url": "/dataTables/i18n/de_de.lang" } } ); } );

    it works not, must i have the file de_de.lang local ?

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    If you are attempting to load that file, then yes, it would need to be on the server. Is it, or is that Ajax request giving a 404 error? Alternatively load it directly from the CDN using the address you gave above.

    Allan

  • mfeskemfeske Posts: 23Questions: 2Answers: 0

    Hello Allan,

    sorry I dont understand :-( Can you send me the row for loading from cdn ?

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    $(document).ready(function() {
        $('#example').DataTable() {
            "language": {
                "url": "//cdn.datatables.net/plug-ins/1.10.19/i18n/German.json"
            }
        });
    });
    
  • kthorngrenkthorngren Posts: 21,300Questions: 26Answers: 4,945

    You have a syntax error in your script. The browser's console is showing this:

    Uncaught SyntaxError: Unexpected token {

    The second line in the above should look like this:

    $(document).ready(function() {
        $('#example').DataTable({
    

    Keivn

  • mfeskemfeske Posts: 23Questions: 2Answers: 0

    Thanks Keivn, now it works

This discussion has been closed.