Bonjour tout le monde,
Je me permet de relancer le sujet car j'ai un petit problème pour l'installation de DataTables.
En effet, après avoir (je pense) correctement chargé les différentes librairies (
<script type="text/javascript" src="jquery-1.6.2.js"></script>
et
<script type="text/javascript" src="dt/media/js/jquery.dataTables.js"></script>
).
voici le code (bidon soit-il) :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead>
<tr>
<th>Rendering engine</th>
<th>Browser</th>
<th>Platform(s)</th>
<th>Engine version</th>
<th>CSS grade</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>Trident</td>
<td>Internet
Explorer 4.0</td>
<td>Win 95+</td>
<td class="center">4</td>
<td class="center">X</td>
</tr>
(...)
<tr class="gradeA">
<td>Webkit</td>
<td>Safari 1.2</td>
<td>OSX.3</td>
<td class="center">125.5</td>
<td class="center">A</td>
</tr>
<tfoot>
<tr>
<th>Rendering engine</th>
<th>Browser</th>
<th>Platform(s)</th>
<th>Engine version</th>
<th>CSS grade</th>
</tr>
</tfoot>
</table>
<script type="text/javascript">
$(document).ready(function() {
$('#example').dataTable();
} );
</script> |
J'ai mon tableau qui est "brut", comme si le CSS n'était pas chargé !!! Est-ce qu'il faut préciser où se trouve le CSS dans le package? ou bien devrait-il aller le chercher tout seul?
Les champs (search et shows) fonctionnent correctement.
Voici un lien de la capture d'écran de ma datatable : http://www.hostingpics.net/viewer.ph...4datatable.png
Est-ce quelqu'un sait pourquoi j'ai ce tableau tout moche ??
MErci par avance !
Partager