By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,304 Members | 3,201 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,304 IT Pros & Developers. It's quick & easy.

Download more than 1 file

P: n/a
Hi

I'm using client-side JavaScript to set window.location.href to an
ASP.NET page that outputs an audio file; the user is prompted for the
download location. I would also like to download an XML file when the
audio file has finished downloading. I've been experimenting with
opening a new window for the XML download, but it doesn't seem like a
very good solution. Any ideas?

Aug 17 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
The browser is only going to download one file at a time. You can create a
zip file with the 2 files in it. You can create an installation file
(executable) that contains both files and installs them. Or you can create
an ActiveX control or Java Applet (or SWF) that does the work in the
browser.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Orange you bland I stopped splaying bananas?
"Gary" <ga***********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hi

I'm using client-side JavaScript to set window.location.href to an
ASP.NET page that outputs an audio file; the user is prompted for the
download location. I would also like to download an XML file when the
audio file has finished downloading. I've been experimenting with
opening a new window for the XML download, but it doesn't seem like a
very good solution. Any ideas?

Aug 17 '06 #2

P: n/a

If I set window.location.href for the first file, and then use
window.open for the second file, the user is prompted for the download
location for each file, and both files download, but I can't find a way
of closing the extra window that I've created. I know I could implement
one of your suggestions; I just wondered if there was an alternative.

Kevin Spencer wrote:
The browser is only going to download one file at a time. You can create a
zip file with the 2 files in it. You can create an installation file
(executable) that contains both files and installs them. Or you can create
an ActiveX control or Java Applet (or SWF) that does the work in the
browser.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Orange you bland I stopped splaying bananas?
"Gary" <ga***********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hi

I'm using client-side JavaScript to set window.location.href to an
ASP.NET page that outputs an audio file; the user is prompted for the
download location. I would also like to download an XML file when the
audio file has finished downloading. I've been experimenting with
opening a new window for the XML download, but it doesn't seem like a
very good solution. Any ideas?
Aug 17 '06 #3

P: n/a
Yes, my suggestions are the alternatives.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Orange you bland I stopped splaying bananas?
"Gary" <ga***********@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
>
If I set window.location.href for the first file, and then use
window.open for the second file, the user is prompted for the download
location for each file, and both files download, but I can't find a way
of closing the extra window that I've created. I know I could implement
one of your suggestions; I just wondered if there was an alternative.

Kevin Spencer wrote:
>The browser is only going to download one file at a time. You can create
a
zip file with the 2 files in it. You can create an installation file
(executable) that contains both files and installs them. Or you can
create
an ActiveX control or Java Applet (or SWF) that does the work in the
browser.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Orange you bland I stopped splaying bananas?
"Gary" <ga***********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googleg roups.com...
Hi

I'm using client-side JavaScript to set window.location.href to an
ASP.NET page that outputs an audio file; the user is prompted for the
download location. I would also like to download an XML file when the
audio file has finished downloading. I've been experimenting with
opening a new window for the XML download, but it doesn't seem like a
very good solution. Any ideas?

Aug 17 '06 #4

P: n/a
Oh right. Well that's that then.

Kevin Spencer wrote:
Yes, my suggestions are the alternatives.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Orange you bland I stopped splaying bananas?
"Gary" <ga***********@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...

If I set window.location.href for the first file, and then use
window.open for the second file, the user is prompted for the download
location for each file, and both files download, but I can't find a way
of closing the extra window that I've created. I know I could implement
one of your suggestions; I just wondered if there was an alternative.

Kevin Spencer wrote:
The browser is only going to download one file at a time. You can create
a
zip file with the 2 files in it. You can create an installation file
(executable) that contains both files and installs them. Or you can
create
an ActiveX control or Java Applet (or SWF) that does the work in the
browser.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Orange you bland I stopped splaying bananas?
"Gary" <ga***********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hi

I'm using client-side JavaScript to set window.location.href to an
ASP.NET page that outputs an audio file; the user is prompted for the
download location. I would also like to download an XML file when the
audio file has finished downloading. I've been experimenting with
opening a new window for the XML download, but it doesn't seem like a
very good solution. Any ideas?
Aug 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.