DelphiFAQ Home Search:

How can I start two simultaneous downloads with one link?


comments2 comments. Current rating: 5 stars (1 votes). Leave comments and/ or rate it.


I need to ensure that a user downloads two files and want to start both downloads once the user has clicked on 'Download now'. I cannot pack both files in one archive. How can I achieve this?


This is a good application for IFRAMEs. (Or regular FRAMEs). Have one (I)FRAME for each document and write a function that sets each frame's location to one of the downloads.

If you want to go fancy, you can even create those IFRAMEs dynamically on the fly with insertAdjacentHTML and setting their SRC parameter to each file's URL.

Otherwise simply provide the two IFRAMEs somewhere small and not noticable at the bottom of the page and dynamically set their SRC attribute.

Content-type: text/html


2012-10-22, 23:46:05
anonymous from Philippines  
It’s really a nice and helpful piece of information. I’m glad that you shared this helpful info with us. Please keep us informed like this.
2012-11-12, 05:15:54
anonymous from United States  



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: