Adding dynamic values ontop of table

Adding dynamic values ontop of table

phozephoze Posts: 1Questions: 0Answers: 0
edited June 2011 in General
Hi, I have a problem that has been bugging me. Whenever I add a new row, it goes straight to the bottom of my table. I want the new rows I add dynamicly via ajax to go straight ontop of the table..

What could be the problem?

Add new row
[code]
function addRow(data){$('#logentry #table').dataTable().fnAddData([data]);}
[/code]

My table (javascript)
[code]
jQuery.fn.dataTableExt.oPagination.iFullNumbersShowPages = 1;
$('#log #table').dataTable({"sPaginationType": "full_numbers","aaSorting": [[ 0, "desc" ]],"bFilter": false, "bInfo": true});
[/code]

My table (html)
[code]













// some stuff goes here







[/code]
This discussion has been closed.