I have a javascript function that processes data and generates a file to be downloaded. The main browsers have a native function or allow using the download
attribute on the A
tag as a way to save this file on the client's disk. IE 9 and 8 (which I must still support) doesn't. So it came to my mind I could use flash to do the work in these cases (ExternalInterface.addCallback
), however it looks like I will need to place an extra button to do so (https://stackoverflow.com/a/3302164), isn't there a way to contour this and call FileReference.save
without a click?
Asked
Active
Viewed 356 times
0

Community
- 1
- 1

Wanderson Silva
- 1,179
- 1
- 17
- 35
-
But you said that you have an A tag? Why not use the click on the link? – Larusso Apr 05 '13 at 18:05
-
Each browser behaves a different way for downloads, the `download` attribute allows me to set the default file name, at least – Wanderson Silva Apr 05 '13 at 18:12