cdn not working ?
cdn not working ?
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>
                This discussion has been closed.
            
Answers
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
I don t understand this, on the centos server it works http://forum.allmendeweg.de/datatables/testmin.php same code on ubuntu doesnt work.
Are you able to link to the Ubuntu server version? I guess there is a config difference somewhere in them!
Allan
sorry link works only with vpn from company :-( what ca i do to test the config?
Micha
I can't really help with the configuration of the server, but I would suggest starting by checking the server error log.
Allan