From: Jedrin on
I'm interested in finding out if it's possible to have javascript fire
off multiple file downloads. I realizes using a zip file is a good
option here, but I have been asked to investigate if it can be done
individually without a zip file. I have google searched a bit and
found some stuff, though it's not totally clear what the answer is. If
it can't be done, that's fine I just need to know ..

Thanks

From: Thomas 'PointedEars' Lahn on
Jedrin wrote:

> I'm interested in finding out if it's possible to have javascript fire

There is no "javascript". What are your target environments?

> off multiple file downloads. I realizes using a zip file is a good
> option here, but I have been asked to investigate if it can be done
> individually without a zip file. I have google searched a bit and
> found some stuff, though it's not totally clear what the answer is.

There is seldom only one answer. What have you searched for (keywords) and
what have you found that needs clarification?

> If it can't be done, that's fine I just need to know ..

It can be done. It can be done without client-side scripting, too.

<http://jibbering.com/faq/#posting>


PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(a)news.demon.co.uk> (2004)
From: S.T. on
On 2/5/2010 2:34 PM, Jedrin wrote:
> I'm interested in finding out if it's possible to have javascript fire
> off multiple file downloads. I realizes using a zip file is a good
> option here, but I have been asked to investigate if it can be done
> individually without a zip file. I have google searched a bit and
> found some stuff, though it's not totally clear what the answer is. If
> it can't be done, that's fine I just need to know ..
>
> Thanks
>

If you want more of an out-of-the-box solution with a built-in UI, at
the expense of being a bit 'heavy', you can look at something like:

http://www.plupload.com/example_queuewidget.php

However it's going to require the user's browser have at least one of
Flash, Silverlight or Gears installed -- or be a newer browser with some
of the new HTML5 features available.
From: Mike Duffy on
Thomas 'PointedEars' Lahn <PointedEars(a)web.de> wrote in
news:4141224.JfEyVGOHjE(a)PointedEars.de:


> It can be done. It can be done without client-side scripting, too.

And in the "extreme" example (virus propagation), multiple file downloads
can be done without even the end user's participation.
From: Jedrin on

In answer to what environment I have, it is ruby on rails server
running on linux. I think it has the standard prototype javascript
library which has ajax support. I've used jquery before as well.

That plupload looks like multiple file upload where as I am looking
for multiple file download.

My google search was something like 'javascript multiple file
download', but I did it at work so I can't be sure exactly and I am at
home currently. I found an example that did a window.open() inside of
a setTimeout(). I've done a bit of javascript, but I'm not a wiz. I
reasoned that if it was easy to do that, you could create viruses that
did that which I had not seen too many like that .. I know there is
some cross sute scripting you can do, but not sure how complicated it
should have to be ..

 |  Next  |  Last
Pages: 1 2
Prev: Motivation of software professionals
Next: asp