This is closer to what you want.

http://jsfiddle.net/tMhbd/11/

You want to use the same AjaxRequest for each click instead of
instantiating a new instance each time. I could not get the "chain"
functionality working here though. But, cancel seemed to be working fine.

~Philip

On Mon, Jun 4, 2012 at 9:34 AM, 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!
>>
>>


-- 
http://lonestarlightandsound.com/

Reply via email to