Connecting Tech Pros Worldwide Forums | Help | Site Map

Download more than 1 file

Gary
Guest
 
Posts: n/a
#1: Aug 17 '06
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?


Kevin Spencer
Guest
 
Posts: n/a
#2: Aug 17 '06

re: Download more than 1 file


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" <gary.homewood@gmail.comwrote in message
news:1155820892.212829.110900@p79g2000cwp.googlegr oups.com...
Quote:
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?
>

Gary
Guest
 
Posts: n/a
#3: Aug 17 '06

re: Download more than 1 file



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:
Quote:
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" <gary.homewood@gmail.comwrote in message
news:1155820892.212829.110900@p79g2000cwp.googlegr oups.com...
Quote:
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?
Kevin Spencer
Guest
 
Posts: n/a
#4: Aug 17 '06

re: Download more than 1 file


Yes, my suggestions are the alternatives.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Orange you bland I stopped splaying bananas?


"Gary" <gary.homewood@gmail.comwrote in message
news:1155824373.748068.103980@74g2000cwt.googlegro ups.com...
Quote:
>
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:
Quote:
>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" <gary.homewood@gmail.comwrote in message
>news:1155820892.212829.110900@p79g2000cwp.googleg roups.com...
Quote:
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?
>
>

Gary
Guest
 
Posts: n/a
#5: Aug 17 '06

re: Download more than 1 file


Oh right. Well that's that then.

Kevin Spencer wrote:
Quote:
Yes, my suggestions are the alternatives.
>
--
HTH,
>
Kevin Spencer
Microsoft MVP
Chicken Salad Surgery
>
Orange you bland I stopped splaying bananas?
>
>
"Gary" <gary.homewood@gmail.comwrote in message
news:1155824373.748068.103980@74g2000cwt.googlegro ups.com...
Quote:

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:
Quote:
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" <gary.homewood@gmail.comwrote in message
news:1155820892.212829.110900@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?
Closed Thread