fnAddDataAndDisplay - How do I access the object it returns?
fnAddDataAndDisplay - How do I access the object it returns?
I'm using this function here: http://datatables.net/plug-ins/api
It says that this function returns an object with the added TR element and it's index in aoData such that you could provide an effect (fade for example) to show which row has been added, but there are no examples on how to do so..
Would anybody out there happen to be able to give an example as to how to do so?
Thanks a bunch!
It says that this function returns an object with the added TR element and it's index in aoData such that you could provide an effect (fade for example) to show which row has been added, but there are no examples on how to do so..
Would anybody out there happen to be able to give an example as to how to do so?
Thanks a bunch!
This discussion has been closed.
Replies
[code]
var obj = oTable.fnAddDataAndDisplay( ... );
var node = obj.nTr;
[/code]
Then you can apply whatever effect you want using jQuery etc ( http://api.jquery.com/category/effects/ ).
Allan