1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-27 00:54:15 +01:00

Update example: Update Ajax language example to read file form the CDN

This commit is contained in:
Allan Jardine 2014-12-16 15:24:39 +00:00
parent a5e8ca8a2e
commit ff13ccc3ca
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
d9366660c7ea55ed56e77b7c9deba9a1346b4ccd
e6cc0e9a63df55a26b44703df6c24bdba7802ffb

View File

@ -22,7 +22,7 @@
$(document).ready(function() {
$('#example').dataTable( {
"language": {
"url": "../resources/de_DE.txt"
"url": "http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json"
}
} );
} );
@ -42,7 +42,7 @@ $(document).ready(function() {
DataTables can load by Ajax using the <a href="//datatables.net/reference/option/language.url"><code class="option" title=
"DataTables initialisation option">language.url<span>DT</span></code></a> option.</p>
<p>The following example shows DataTables reading a German language file.</p>
<p>The following example shows DataTables reading a German language file which is hosted on the <a href="http://cdn.datatables.net">DataTables CDN</a></p>
</div>
<table id="example" class="display" cellspacing="0" width="100%">
@ -541,7 +541,7 @@ $(document).ready(function() {
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
$('#example').dataTable( {
&quot;language&quot;: {
&quot;url&quot;: &quot;../resources/de_DE.txt&quot;
&quot;url&quot;: &quot;http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json&quot;
}
} );
} );</code>