'odd' and 'even' over rows hidden
'odd' and 'even' over rows hidden
jytest
Posts: 26Questions: 0Answers: 0
Hi,
I need your help.
I used datatables with hidden lines.
1.
I can not return the background of the parent row ('odd' or 'even'), to the dependent rows hidden.
I can not change the background property of 'details', based on the values 'odd' and 'even'.
2.
I would also have liked the mouseover is disabled for hidden rows.
Can you help me?
[code] $('#example tbody td img').live('click', function () {
var nTr = $(this).parents('tr')[0];
if (oTable.fnIsOpen(nTr)) {
this.src = "images/recherche/detailouvrir.gif";
oTable.fnClose( nTr );
} else {
this.src = "images/recherche/detailfermer.gif";
oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
}
} );
[/code]
[code] function fnFormatDetails (oTable, nTr) {
aData = oTable.fnGetData( nTr );
forme = aData[1];
image = imgforme[libforme.length-1];
for (var k=1; k
I need your help.
I used datatables with hidden lines.
1.
I can not return the background of the parent row ('odd' or 'even'), to the dependent rows hidden.
I can not change the background property of 'details', based on the values 'odd' and 'even'.
2.
I would also have liked the mouseover is disabled for hidden rows.
Can you help me?
[code] $('#example tbody td img').live('click', function () {
var nTr = $(this).parents('tr')[0];
if (oTable.fnIsOpen(nTr)) {
this.src = "images/recherche/detailouvrir.gif";
oTable.fnClose( nTr );
} else {
this.src = "images/recherche/detailfermer.gif";
oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
}
} );
[/code]
[code] function fnFormatDetails (oTable, nTr) {
aData = oTable.fnGetData( nTr );
forme = aData[1];
image = imgforme[libforme.length-1];
for (var k=1; k
This discussion has been closed.
Replies
Allan
http://www.celinni.com/creaprint/recherche00.php,
click over one checkcase "comparer" and click over "Comparer" up the datatable.
You are over the page with the problem.
Click over "Détails"...
Thanks for your help !