Maybe the 500-600 Requests would take to long to be processed all at
once so he is splitting the jobs in seperate queues (likewise).

What already have been said is to chunk the jobs into pieces and
iterate over them. Every queuejob will have to return eg. some json
encoded stuff to tell the controller it should fire the next job - or
it was the last one, head over to the postjobs.

I guess the Request.Queue from More would be a great Helper to master
this Task with ease ...

http://mootools.net/docs/more/Request/Request.Queue

Timo

On 30 Mai, 09:17, Robert <[email protected]> wrote:
> Hmm,
> It looks like You have control of XHR server, why not send a whole
> thing to the server and parse/iterate it there, and then send
> everything back and show to the user?
> You would probably save a lot of time that way...
>
> You can use JSON to send whole js object.
>
> On May 26, 10:57 pm, Russellmd <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hello All
>
> > I have a problem with an Ajax request.
> > I have a "for" instruction, for each iteration is executin a request(I
> > used XHR). Each request access an external url, so execution time is
> > about 4-6 seconds, and I need to access at least 600 external links.
> > I would like to display result of each request, one by one. At the
> > moment my script is executing and show me all items when "for" is
> > finished. So, it is possible to display result of each iteration
> > immediatly , when iteration is finished?
>
> > Thanks and sorry for bad English

Reply via email to