Maneesh, yes, this is something that is primarily determined by browser preferences. I was probably looking for a way to somehow override this behavior so that it is consistent across all browsers. Maybe you might want to consider serving the files in a zipped format so it's one download. As I said it is not possible to override browser settings. Thank goodness.
Imagine the security nightmare if you could. With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. Boost this thread! Chrome and Firefox seem to be fine. I am not finding any solutions… do you have ideas? Everything worked great with the drop down selector! Is there something else I should do or try? Simple use a-Elements linking to the files the user may download and style the a-Elements looking like buttons using CSS.
Thanks for the quick reply. So you would make your choice with the select box and then proceed to the download button. Hi Josh, I would have suggested a form that contains the select-Element with all the corresponding files as options and a PHP script responsible for the download. This way you would submit the form using the single button and the PHP script would send the selected file to the client.
Any clue on what wrong I am doing? I've got multiple issues with this solution. In IE since my parent window has changed the document. There's various post about fixing this, but all feel hacky. In Chrome, user gets prompt a warning message telling the web site tries to donwload multiple files but a least it works. This didn't work for me, because the file dialog "blocks" the other save dialogs to appear. What I did was something slightly hacky - the mousemove action registers only after the file dialog disappears, so I used that - but it's not tested.
I will add it as another answer. Does this work in IE10? I get: Object doesn't support property or method 'write' — Hoppe. Show 3 more comments. This is the only one in here that worked for me, since I have to support IE.
Thank you. This answer is golden. Only one that works in all browsers without a warning message. Specially IE. Brilliant stuff — Mukul Goel. Not working in Chrome OSX, it asks me to allow multiple download but even if I do, only the first file is downloaded and I heard an amount of "beep" corresponding to the number of files to download left — Allan Raquin.
Button does nothing Google Chrome Version Button not working in stack overflow Run code snippet. Browser Crome speedplane — m b. Show 4 more comments. Easiest way would be to serve the multiple files bundled up into a ZIP file. Thilo Thilo k 94 94 gold badges silver badges bronze badges.
I realize your answer is from way back in , but a lot of users are browsing with smartphones nowadays, some of which can't open zips by default a buddy tells me his Samsung S4 Active can't open zips.
Yirmiyahu Fischer Yirmiyahu Fischer 1 1 gold badge 6 6 silver badges 19 19 bronze badges. Each is looking for an array. The following script done this job gracefully. URL window. Shyam Narayan Shyam Narayan 1 1 gold badge 10 10 silver badges 22 22 bronze badges.
Drawback: no "download interrupting-continuing" feature like regular downloads have with browser negociating automatically with server through range requests — Xenos. This works, but when I run it, it seems to be downloading the files twice. Any thoughts? Community Bot 1 1 1 silver badge. Melanie Melanie 1, 2 2 gold badges 16 16 silver badges 41 41 bronze badges.
Jee Mok 4, 8 8 gold badges 43 43 silver badges 68 68 bronze badges. Zach Painter Zach Painter 1 1 silver badge 8 8 bronze badges.
Here comes the odd part of the script, the one that makes me crazy to exactly understand how to make it to work as expected. Well if you make a click on the link with your pointer device, the browser behavior is as expected that your page will change to the one defined in the link.
Indeed if you attach a jQuery event to the link, you will obviously see that the code is correctly executed. Then, why the click is not working as expected opening the URL? I was reading jQuery documentation about click and trigger but nothing has told me that this is the right behavior.
From jQuery click method documentation page : This method is a shortcut for.
0コメント