You cannot run a single instance of Request.* simultaneously. To run
requests simultaneously, you will need an instance for each request.
Request.HTML({...}).send();
Request.HTML({...}).send();
Request.HTML({...}).send();
And so forth... These will run simultaneously. However, these will not:
var req = Request.HTML({...});
req.send();
req.send();
req.send();
Depending on what you have set for "link," these request will be ignored,
cancelled, or chained. Creating multiple instances of Request.* and having
them run simultaneously will not block the user...
~Philip
On Mon, Aug 8, 2011 at 1:30 PM, Sid-ahmed D <[email protected]>wrote:
> It is therefore not possible to run a single or 2 instances
> simultaneously?
> http://jsfiddle.net/pbnNA/
> I tried on my computer using 'chain' but queries executed one after
> another.
> My plan is to run a script in the background without blocking users
> when recharging pages (XHR).
>
> ..? Thank you
>
> On Aug 8, 8:02 pm, Sid-ahmed D <[email protected]> wrote:
> > Thank you for your responses.
> >
> > I *should* --> i would :)
> >
> > On Aug 8, 7:36 pm, Philip Thompson <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > On Mon, Aug 8, 2011 at 12:25 PM, Aaron Newton <[email protected]>
> wrote:
> > > > On Mon, Aug 8, 2011 at 10:21 AM, Philip Thompson <
> [email protected]>wrote:
> >
> > > >> They *should* run simultaneously as you have it. You do have the
> "link"
> > > >> set to "chain" (one request after another), but I believe this only
> acts on
> > > >> requests using the same object (however, I may be wrong about this).
> >
> > > > You are correct here. The link value is only used if you have a
> single
> > > > request instance that has .send invoked more than once.
> >
> > > Here's a fiddle showing the 3 types of links. They work as expected...
> >
> > >http://jsfiddle.net/philthathril/WW8SR/1/
> >
> > > Hope that helps to explain a little.
> >
> > > ~Philip
> >
> > > --http://lonestarlightandsound.com/
>
--
http://lonestarlightandsound.com/