theme and fnGetSelected

theme and fnGetSelected

asaasa Posts: 20Questions: 0Answers: 0
edited October 2009 in Bug reports
Hi
i try this code
[code]
/* Add a click handler to the rows - this could be used as a callback */
$("#example tbody").click(function(event) {
$(oTable.fnSettings().aoData).each(function (){
$(this.nTr).removeClass('row_selected');
});
$(event.target.parentNode).addClass('row_selected');
});

/* Add a click handler for the delete row */
$('#delT1').click( function() {


var anSelected = fnGetSelected( oTable );

var iRow = oTable.fnGetPosition( anSelected[0] );
var aData=oTable.fnGetData(iRow);
var x=aData[0];
alert(aData[0]);


} );
$.getJSON( 'testjson.jsp', null, function( json ) {

oTable= $('#example').dataTable(json); });
});
[/code]

but it give me an error to this line
[code] var iRow = oTable.fnGetPosition( anSelected[0] );[code]
i think maybe this related to the theme i used ?

Replies

This discussion has been closed.