j'ai repris les scripts tels qu'ils apparaissent sur le site http://www.jquery.info/ et le code fonctionne sous IE7, FF2 mais pas IE6 (forcement ca aurait été trop beau).
Et du coup ca me bloque un peu pour la compatibilité, je vous colle le code ici :
Code : Tout sélectionner
<script type="text/javascript" src="../_includes/js/jquery.tablesorter.pack.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$.tablesorter.defaults.widgets = ['zebra'];
$("#Sort").tablesorter({
headers: {
3: {
sorter: false
},
4: {
sorter: false
},
5: {
sorter: false
},
8: {
sorter: false
}
}
});
});
</script>
Code : Tout sélectionner
<table border="0" cellspacing="2" cellpadding="0" width="100%" class="tablesorter" id="Sort">
<thead>
<tr>
<th><u>N° LOT</u></th>
<th><u>GENRE</u></th>
<th><u>TYPE</u></th>
<th>ETAGE</th>
<th>ORIENT.</th>
<th>SURF. HAB.</th>
<th><u>PRIX<br />BASE</u></th>
<th><u>PRIX<br />P2</u></th>
<th>LOYER</th>
<th><u>RENTA<br />(EN %)</u></th>
<th><u>DISPO</u></th>
</tr>
</thead>
<tbody>
MON TABLEAU ICI
Voilà je bloque un peu, une idée ?
EDIT :
l'erreur retournée sous IE6 concerne le fichier jquery a la ligne suivante :
// A special, fast, case for the most common use of each
} else {
if ( object.length == undefined ) {
for ( var name in object )
if ( callback.call( object[ name ], name, object[ name ] ) === false )
break;
} else
for ( var i = 0, length = object.length, value = object[0];
i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
}
return object;