|
From: Scott A. L. <sc...@sc...> - 2000-12-30 02:48:20
|
> By multiple load requests, do you mean if I do something like:
>
> lp.add('foo.html');
> lp.add('bar.html');
>
> and the browser goes to fetch 'bar.html' before it's finished receiving the content for 'foo.html' ? This doesn't make much sense to me since fetching the document happens sequentially.
Sorry, I wasn't too clear with that. What I meant was: if you had more
than one layer making load requests, some of them would fail. For
example, I had a page with three DynLayers, each of which were supposed
to load a different external page. In almost all cases, at least one of
the load requests would fail. This happened in both browsers. When
loadHTML was written for DynAPI2 the queue was introduced to process all
requests sequentially, so that two requests didn't happen at once,
causing one to fail.
> > When a URL is loaded it disappears from the queue.
>
> Yes, I do see that, but the Array for the queue keeps growing.
Not sure why that's happening. Without looking at the code, my guess is
that we need to manually decrement the array length to keep it empty. I
think "loadQueue.length --" might do it?
--
scott andrew lepera
-----------------------------------
web stuff: www.scottandrew.com
music stuff: www.walkingbirds.com
|