Highlighting Issue...

Highlighting Issue...

AewilAewil Posts: 9Questions: 2Answers: 0
edited March 2014 in General
Hello everyone,

First, a very big thank you for Datatable, it's awesone !

Second,

I have a problem with highlightin, i really just doesn't work... I'm using Datatable with ColReorder and some css change but it's all. I just put the code as you say in http://datatables.net/release-datatables/examples/api/highlight.html.

My code:

[code]

$(document).ready(function() {

var oTable = $('#table_id').dataTable({
"sDom": 'RC<"clear">Rlfrtip',
"bServerSide": true,
"bSortClasses": false,
"bProcessing": true,
"fnServerData": function ( sSource, aoData, fnCallback ) {
/* Add some data to send to the source, and send as 'POST' */
aoData.push( { "name": "ranumin", "value": $('#ranumin').val() } );
aoData.push( { "name": "ranumax", "value": $('#ranumax').val() } );
aoData.push( { "name": "min", "value": $('#min').val() } );
aoData.push( { "name": "max", "value": $('#max').val() } );
aoData.push( { "name": "expimin", "value": $('#expimin').val() } );
aoData.push( { "name": "expimax", "value": $('#expimax').val() } );
$.ajax({
"dataType": 'json',
"type": "GET",
"url": "serveurdbnakedput.php",
"data": aoData,
"success": fnCallback
});
}
});

oTable.$('td').hover( function() {
var iCol = $('td', this.parentNode).index(this) % 5;
$('td:nth-child('+(iCol+1)+')', oTable.$('tr')).addClass( 'highlighted' );
}, function() {
oTable.$('td.highlighted').removeClass('highlighted');
} );

$('#ranumin').keyup( function() { oTable.fnDraw(); } );
$('#ranumax').keyup( function() { oTable.fnDraw(); } );
$('#min').keyup( function() { oTable.fnDraw(); } );
$('#max').keyup( function() { oTable.fnDraw(); } );
$('#expimin').keyup( function() { oTable.fnDraw(); } );
$('#expimax').keyup( function() { oTable.fnDraw(); } );
});

[/code]

Maybe you can see something wrong...

Thank you !

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Can you link to a test case showing the problem, as required in the forum rules please.

    Allan
This discussion has been closed.