This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple requests to download files using JavaScript

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have to download multiple files on a single request. Could anyone tell me how to use JavaScript to make multiple requests to the files for download and target the results to different windows.

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't be done. A single request can return only one response. There is no way to split the response up to separate windows, or to split the request into multiple responses. You'll need a separate request/response per window.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic