Linked Questions

357 votes
9 answers
1.1m views

I have data that I want to write to a file, and open a file dialog for the user to choose where to save the file. It would be great if it worked in all browsers, but it has to work in Chrome. I want ...
user1756980's user avatar
  • 4,017
35 votes
3 answers
64k views

Is there a way to convert a string from a JavaScrip variable, into a downloadable file that users can download when clicking a button ? Thanks for any advice. <div id="txt">Lorem Ipsum&...
dabraham's user avatar
  • 473
32 votes
3 answers
84k views

Typically, HTML pages can have link to documents (PDF, etc...) which can be downloaded from the server. Assuming a Javascript enabled webpage, is it possible to dynamically create a text document (...
Jérôme Verstrynge's user avatar
7 votes
1 answer
21k views

I wanted to experiment creating a Javascript application that takes input from the user in a form and then generates a file based on the user's form input. The file should then be downloadable by the ...
ZenBalance's user avatar
  • 10.4k
12 votes
2 answers
11k views

HTML5 introduces the FileWriter class. With this class you can make Blobs. (A File is an extension of a Blob.) With JavaScript you can make a Blob and for instance show it using the dataURL. Example: ...
Rudie's user avatar
  • 54.2k
2 votes
2 answers
9k views

I am trying to create a json file from javascript . since i didnt get the code i am trying to create a text file as .. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html>...
ess's user avatar
  • 683
0 votes
1 answer
5k views

How to save this data into JSON file? var objJson = { questionType : "singleLine", maxCharecters : 25, question : "What is the capital of India?", answer : "Delhi"...
Akash Starvin D'Souza's user avatar
2 votes
1 answer
3k views

I have a schedule app built with AngularJS and I'm looking for a way to save the data changed within the app to disk after I close it. When I open the app again I want it to read the freshly modified ...
Hard Coded's user avatar
0 votes
1 answer
1k views

I am developing a single page app with Jquery. The user does some stuff on my app and I save some data in a JSON. Now I want to trasform the JSON in a text file and start the file download. How can I ...
Gian Luca Scoccia's user avatar
0 votes
2 answers
823 views

HI I am creating a dynamic html section and I have two buttons: preview and download. The preview is fine working. As for the second button, i.e. download, I want to make the action of the button ...
Rohit Azad Malik's user avatar
0 votes
0 answers
910 views

I use jQuery and JavaScript to build a web application. I want to somehow create a .txt file from a JS string and force the client's browser to download this file. Preferably the file should not be ...
Dedo Ti's user avatar
  • 13
1 vote
2 answers
550 views

I have plotted some graphs using d3.js. In d3.tsv function I have passed a URL to a php script that performs some query on database and returns output to the client in TSV format. e.g.: d3.tsv("...
Vaibhav's user avatar
  • 11
0 votes
0 answers
361 views

I am wondering how to download all images , based on the URL in an array. I have an array like such for example ['https://url/image1.jpg', 'https://url/image2.jpg'] I have introduced a piece of code ...
Kiwimoisi's user avatar
  • 4,202
0 votes
1 answer
224 views

I wrote code that allows me to create polylines on the fly by clicking on the container that is listening for clicks. My intention is to be able to save individual polylines by writing the points ...
strastage's user avatar
-4 votes
1 answer
249 views

I want to make a PHP file without nodeJS but var fs = require('fs') does not work in regular JavaScript so fs.writeFileSync() can't work. Is there a replacement for that? My code: <script> fs....
windows.sys's user avatar

15 30 50 per page
1
2 3 4 5
14