Linked Questions
103 questions linked to/from How to export JavaScript array info to csv (on client side)?
0 votes
0 answers
137 views
How do I export csv data consistently across browsers? [duplicate]
I have an array of time sheet data that I want to export as a csv file. My current implementation works great in Chrome, but not in Firefox or Safari (I haven't tested other browsers). Here's an ...
0 votes
0 answers
25 views
How to export and load the notes as a text some kind of file file (javascript) [duplicate]
document.getElementById('add-note').addEventListener('click', function() { var note = prompt('Enter your note:'); if (note) { var li = document.createElement('li'); li....
321 votes
10 answers
640k views
JavaScript blob filename without link
How do you set the name of a blob file in JavaScript when force downloading it through window.location? function newFile(data) { var json = JSON.stringify(data); var blob = new Blob([json], {...
98 votes
6 answers
91k views
Adding UTF-8 BOM to string/Blob
I need to add a UTF-8 byte-order-mark to generated text data on client side. How do I do that? Using new Blob(['\xEF\xBB\xBF' + content]) yields '"my data"', of course. Neither did '\uBBEF\x22BF'...
72 votes
11 answers
217k views
JavaScript array to CSV
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",...
64 votes
3 answers
105k views
Flask: Download a csv file on clicking a button [duplicate]
I just got started with Flask/Python. What I want to achieve is that I have a download button in my HTML and it calls the following function: function downloadPlotCSV() { $.ajax({ ...
35 votes
7 answers
73k views
Download CSV from an iPython Notebook
I run an iPython Notebook server, and would like users to be able to download a pandas dataframe as a csv file so that they can use it in their own environment. There's no personal data, so if the ...
42 votes
1 answer
62k views
Javascript export CSV encoding utf-8 issue
I need to export javascript array to CSV file and download it. I did it but 'ı,ü,ö,ğ,ş' this characters looks like 'ı ü ö ÄŸ ÅŸ' in the CSV file. I have tried many solutions recommended on this ...
27 votes
5 answers
71k views
Download a ReactJS object as a file
I am building an application with a ReactJS front end that connects to an Express API server. Calls to the API are made using Ajax. In one of my views, a table loads with "Export" links on each row. ...
26 votes
2 answers
35k views
"Failed - Network Error" When trying to provide download in HTML5 using 'download' attribute
Basic summary of what I'm trying to do: Take files from user (using "dropzone" drag and drop bootstrap module to recieve files) Modify and do some "work" on the files Zip files together for single ...
9 votes
1 answer
28k views
Javascript: set filename to be downloaded
I'm using a plugin to generate a csv file from a table, the file is being downloaded with a "download" filename, how can I change the filename e.g. as dowload.csv var csv = $("#table").table2CSV({...
12 votes
1 answer
35k views
Javascript:: export to text file
<!DOCTYPE html> <html> <head> <title> </title> <meta charset=utf-8> </head> <body> <table> <tr> &...
10 votes
2 answers
13k views
How to convert array of nested objects to CSV?
I have an array with nested objects, such as this one: [ {"name": "1", "children": [{"name": "1.1", "children":"1.2"}]}, {"id": "2", "thing": [{"name": "2.1", "children":"2.2"}]}, {"name":...
11 votes
3 answers
14k views
is there a way to save bokeh data table content
I am experimenting with bokeh data table to display data embedded in web page. It works quite nicely. Is there a way to save the table content from the displayed data table? Other bokeh plots have ...
16 votes
2 answers
9k views
How can I revoke an object URL only after it's downloaded?
I'm saving a file in JavaScript using the following code: var a = document.createElement('a'); a.href = URL.createObjectURL(new Blob(['SOME DATA'])); a.download = 'some.dat'; a.click(); I want to ...