Those options only work when you just have one request object.

So do something like this:

var request = new Request({chain: 'link', ...});

$$('.link').addEvent('click', function(){
    // reuse the request object
    request.send();
});

On Mon, Jun 4, 2012 at 4:34 PM, Lukas Oberbichler
<l.oberbich...@gmail.com>wrote:

> Hello Michael,
>
> thanks for your response.
> I've tried 'link' : 'chain'; but that had no effect.
>
> Regards,
>
> Am Montag, 4. Juni 2012 16:28:22 UTC+2 schrieb Michael:
>>
>> Take a look at the link option for Request.
>>
>> The default is to ignore all subsequent requests until the first is
>> complete.
>> http://www.mootools.net/docs/**core/Request/Request<http://www.mootools.net/docs/core/Request/Request>
>>
>> On 2012-06-04, at 7:57 AM, Lukas Oberbichler
>>
>> Greetings dear readers,
>>
>> I would really appreciate your help solving my problem.
>>
>> I have programmed a user interface to make CRUD-operations on a database
>> (select, insert, delete, update).
>> If the user edits more than one row - a "updateAll" button appears which
>> fires all "singleUpdate" events.
>>
>> A singleUpdate event fires a Request.JSON call to a JSP servlet.
>>
>> The problem is, that when the "updateAll" button is clicked - all
>> requests are made simultaneous and only the last one is successfull - so I
>> want to wait till one request is made until I make another.
>>
>> I have attached a exampleCode in jsfiddle to make it clear.
>>
>> http://jsfiddle.net/tMhbd/9/
>>
>> Thanks in advance for your help!
>>
>>

Reply via email to