Skip to content
Advertisement

Tag: download

Auto-closing a popup with a file to download

I have a file, named download.php, which contains a file to be downloaded, so it has the following headers (declared with PHP): download.php is opened as a popup with jQuery by an other page. Now I want download.php to self-close (using JavaScript) after some seconds (so I’m secure that download started) but I didn’t manage to write working code. Here

Download a file by jQuery.Ajax

I have a Struts2 action in the server side for file downloading. However when I call the action using the jQuery: in Firebug I see the data is retrieved with the Binary stream. I wonder how to open the file downloading window with which the user can save the file locally? Answer 2019 modern browsers update This is the approach

Advertisement