column title from file

column title from file

ArielRauchArielRauch Posts: 1Questions: 0Answers: 0
edited January 2013 in General
Hi,
first of all I would like to state that this is a great piece of software you created.

I am trying to load a file (csv) and to fill the table with the data and to use the first row for the column headers.
With the data I got around:
var aDataSet = Array ();
var ret = $.get("https://dl.dropbox.com/u/33611841/prices.txt", function(data){
aDataSet = $.csv.toArrays(data);
$('#example').dataTable().fnAddData(aDataSet)

For the column headers I did not find any suitable solution.
Again, I would like to use the first row of the csv file as the header titles.

Thanks for any advice

Ariel
This discussion has been closed.