Language plugin with external url fails in IE8

Language plugin with external url fails in IE8

AntonAnton Posts: 4Questions: 1Answers: 0

When using the language plugin providing an external url, it fails in IE8 making no table showed at all and no js error. It works in Firefox or Chrome. I tried the lower security configuration in IE8 but the error persists.

Example code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="http://cdn.datatables.net/1.10.2/js/jquery.dataTables.js"></script>
<link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.2/css/jquery.dataTables.min.css" />
<body>
<h1>Test</h1>

<script type="text/javascript">
var dataSet = [
    ['Trident','Internet Explorer 4.0','Win 95+','4','X'],
    ['Trident','Internet Explorer 5.0','Win 95+','5','C'],
    ['Trident','Internet Explorer 5.5','Win 95+','5.5','A']
];
 
$(document).ready(function() {
    var table = $('#example').dataTable( {
        language: { url: "http://cdn.datatables.net/plug-ins/725b2a2115b/i18n/Spanish.json" },
        data: dataSet,
        columns: [
            { title: "Engine" },
            { title: "Browser" },
            { title: "Platform" },
            { title: "Version", "class": "center" },
            { title: "Grade", "class": "center" }
        ]
    } );
} );
</script>

<table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table>

</body>
</html>

Replies

  • AntonAnton Posts: 4Questions: 1Answers: 0

    If I download the language file it works, so I think it's a problem accesing the url or resolving the address.

This discussion has been closed.