468,507 Members | 1,496 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,507 developers. It's quick & easy.

Download more than 1 file

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
4 1292
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

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
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
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.

Similar topics

4 posts views Thread by Kevin Muenzler, WB5RUE | last post: by
6 posts views Thread by JCO | last post: by
4 posts views Thread by Nathan Sokalski | last post: by
4 posts views Thread by tjfdownsouth | last post: by
1 post views Thread by a.r.austin | last post: by
1 post views Thread by ajash.pv | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.