fnUpdate help

fnUpdate help

shauntainshauntain Posts: 6Questions: 0Answers: 0
edited January 2010 in General
Could someone help me use this correctly?

I have an array that I am trying to insert at a node.. so my code looks something like this:

var aiRow = oTable.fnAddData( [....array...] , false);
var nRow = oTable.fnSettings().aoData[ aiRow[0] ].nTr;
....
oTable.fnUpdate( [...array...] , nRow, false);

What am I passing wrong?

Thank you so much,
Shane.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi Shane,

    Not sure :-). What's not working about it? A JS error, or unexpected interaction?

    One thing to note is that the 'false' as arg3 for fnUpdate looks odd. It should perhaps be fnUpdate( [], nRow, null, false )? http://datatables.net/api#fnUpdate

    Regards,
    Allan
This discussion has been closed.