I've followed this post How to export JavaScript array info to csv (on client side)? to get a nested js array written as a csv file.
The array looks like:
var test_array = [[name1, 2, 3], [name2, 4, 5], [name3, 6, 7], [name4, 8, 9], [name5, 10, 11]];
The code given in the link works nicely except that after the third line of the csv file all the rest of the values are on the same line
e.g.
name1,2,3
name2,4,5
name3,6,7
name4,8,9name5,10,11 etc etc
Can anyone shed any light on why this is? Same using Chrome or FF.
Thanks
EDIT
jsfiddle http://jsfiddle.net/iaingallagher/dJKz6/
Iain