cdn not working ?

cdn not working ?

mfeskemfeske Posts: 23Questions: 2Answers: 0
edited October 2014 in Free community support

Hello,
i try the example with cdn, but its not working, shows only html.

Where is my mistake?

<html>
<head>
<!-- DataTables CSS -->
<link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.3/css/jquery.dataTables.css">
<!-- jQuery -->
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://cdn.datatables.net/1.10.3/js/jquery.dataTables.min.js"></script>


<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable();
} );
</script>

</head>

<body>
<table id="example" class="display" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>Name</th>
                <th>Position</th>
                <th>Office</th>
                <th>Age</th>
                <th>Start date</th>
                <th>Salary</th>
            </tr>
        </thead>

        <tfoot>
            <tr>
                <th>Name</th>
                <th>Position</th>
                <th>Office</th>
                <th>Age</th>
                <th>Start date</th>
                <th>Salary</th>
            </tr>
        </tfoot>

        <tbody>
            <tr>
                <td>Tiger Nixon</td>
                <td>System Architect</td>
                <td>Edinburgh</td>
                <td>61</td>
                <td>2011/04/25</td>
                <td>$320,800</td>
            </tr>
            <tr>
                <td>Garrett Winters</td>
                <td>Accountant</td>
                <td>Tokyo</td>
                <td>63</td>
                <td>2011/07/25</td>
                <td>$170,750</td>
            </tr>
            <tr>
                <td>Ashton Cox</td>
                <td>Junior Technical Author</td>
                <td>San Francisco</td>
                <td>66</td>
                <td>2009/01/12</td>
                <td>$86,000</td>
            </tr>
        </tbody>
    </table>
</body>
</html>

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Your code seems to run just fine for me: http://live.datatables.net/niketuye/1/edit .

    Perhaps you can link to your page, or have a look in your browser's developer console to see if it is reporting any errors.

    Allan

  • mfeskemfeske Posts: 23Questions: 2Answers: 0

    I don t understand this, on the centos server it works http://forum.allmendeweg.de/datatables/testmin.php same code on ubuntu doesnt work.

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Are you able to link to the Ubuntu server version? I guess there is a config difference somewhere in them!

    Allan

  • mfeskemfeske Posts: 23Questions: 2Answers: 0

    sorry link works only with vpn from company :-( what ca i do to test the config?
    Micha

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    I can't really help with the configuration of the server, but I would suggest starting by checking the server error log.

    Allan

This discussion has been closed.