
April 19th, 2004, 05:24 PM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
javascript - create csv file from array
I have a javascript 2-D array that I would like to output to a .csv file. Right now I'm creating a new document:
export_window = window.open("","ExportWindow","width=900,height=200,left=10,top=10");
export_window.document.write(newText);
where newText merely contains the comma separated list. So currently, we can copy the text created and save it in notepad as a .csv file, but I'd like to somehow get the browser to open a file save window automatically. Any ideas? 
|