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). Check
the "Net" tab in Firebug to verify that they are running in succession or
simultaneously. Try removing the "chain" and see what you get. Also, you may
try creating a fiddle so we can play with it as well...

Happy coding,
~Philip

On Mon, Aug 8, 2011 at 12:03 PM, Sid-ahmed D <[email protected]>wrote:

> Hello,
>
> How can I run two requests simultaneously?
> In my example, two requests are going on simultaneously, but the
> execution is done one after other ...
>
>
> var RQ1 = function() { new Request.HTML({
>                url: '/foo'
>                link : 'chain',
>                onSuccess: function (trees, eles, html, js) {
>                                console.log('ok')
>                }
> }).send() };
>
> var RQ2 = function() { new Request.HTML({
>                url: '/foo2'
>                link : 'chain',
>                onSuccess: function (trees, eles, html, js) {
>                                console.log('ok')
>                }
> }).send() };
>
>
> RQ1(); // 5 secondes -> time execution
> RQ2(); // 25 secondes --> time exeution for example
>
>
>
> I should that execution start simultaneously and not only start
> requests.
> Can you help?
>
> Thank you




-- 
http://lonestarlightandsound.com/

Reply via email to