Subj : Re: Threading in JavaScript To : comp.lang.javascript,netscape.public.mozilla.jseng From : Stephen Date : Sun Feb 02 2003 04:56 pm Gordan wrote: > Steve van Dongen wrote: > > >>On Sat, 01 Feb 2003 17:40:17 +0000, Gordan >>wrote: > > > [snip] > > >>>I was thinking about working around this by using IFRAMEs instead of DIVs, >>>but I have found that the single-thread paradigm also spans frames within >>>a single browser instance. >>> >>>The only workaround I can think of is creating a Java applet or a >>>plugin/ActiveX control combo (I need the app to be cross-browser) that can >>>take a URL, or a list of URLs and start downloading them independently. >>>Then I could fudge the delay loop using a recursive setTimeout() based >>>function for polling the status, and working around the problem that way. >>>It wouldn't work around the parallel page generation issues, but it would >>>at least work around the issue of not being able to fork multiple >>>simultaneous downloads. > > > [snip] > > >>Sounds like you should look into XMLHTTP >>http://jibbering.com/2002/4/httprequest.html > > > Thank for the reply, Steve. > > I am already aware of the XMLHTTP method for downloading things. > Unfortunately, it only allows the download of one file at a time, which is > why I was looking for a different solution that allows me to download > multiple files simultaneously. > Will these (possibly as many as 100) files come from the same server or from multiple different servers? Do you have control over all/any of these servers' configs? How do you envision "download[ing] multiple files simultaneously" happening across TCP/IP using HTTP? What networking issues have you considered in this context? Regards, Stephen .