fnAddData add row to JavaScript Array
fnAddData add row to JavaScript Array
Hi there,
I am getting data for my table from a JavaScript Object, and want to add a line to the object when I add data to the table. Can anyone help me out on how I would go about this. I thought about using .Append but I can't seem to work it out.
Thanks
Jonathan
I am getting data for my table from a JavaScript Object, and want to add a line to the object when I add data to the table. Can anyone help me out on how I would go about this. I thought about using .Append but I can't seem to work it out.
Thanks
Jonathan
This discussion has been closed.
Replies
Allan
I have [code] table.fnAddData([taskName, deviceName, image, successAction, currentDate]); [/code]
which adds a new row to the table, but I want this to submit to the Javascript Array that im using as a data source. The array is shown below.
[code]var HomeDataSet = [
['M33 Task','Satellite M33','Test 09','Auto Reboot','03 June 2010'],
['HP 500GB','HP EliteBook','HP EliteBook','Auto Reboot','23 June 2010']]; [/code]
Thanks
Jonathan
Allan