$(document).bind(Tapestry.ZONE_UPDATED_EVENT, function() {...})
 On 24 Jul 2014 10:22, "Michael Wyraz" <michael.wy...@evermind.de> wrote:

> Hi,
>
> unfortunately it works not completely as expected. The reason is that that
> jQuery event if fired when the response is received, not when the response
> is processed. So i have a race-contition here where tapestry is aplying
> zoneupdates or redirects but my script thinks that the request is already
> done.
> It looks that I explicitely need a hook to when tapestry is done
> processing the result.
>
> So again my question: what is the best way to extend dom.js? or do we need
> to add the event to the tapestry-core?
>
>
>  Hi Thiago,
>>
>> thank you very much for the hint. Look that I searched at the wrong
>> place. I could solve my problem using the following script:
>>
>>    define(["jquery"],function($) {
>>         var ajaxCount=0;
>>         $(document).ajaxStart(function() {
>>             ajaxCount++;
>>             console.log("Ajax Start. Number of runing ajax requests:
>>    "+ajaxCount);
>>             document.ajaxRunning=ajaxCount>0;
>>         });
>>         $(document).ajaxStop(function() {
>>             ajaxCount--;
>>             console.log("Ajax Stop. Number of runing ajax requests:
>>    "+ajaxCount);
>>             document.ajaxRunning=ajaxCount>0;
>>         });
>>    });
>>
>> Plus a special "WebDriverWait"-Condition that checks this flag.
>>
>>
>>  On Wed, 23 Jul 2014 10:46:24 -0300, Michael Wyraz <
>>> michael.wy...@evermind.de> wrote:
>>>
>>>  Hi,
>>>>
>>>
>>> Hi!
>>>
>>>  I'd like to track ajax requests (when do they start, when they are
>>>> finished) for some purposes:
>>>>
>>>
>>> Both Prototype and jQuery provide callbacks for this.
>>>
>>>
>>
>>
>
> --
>
> Mit freundlichen Grüßen / Kind regards
>
> Michael Wyraz
>
> evermind GmbH
> Schorlemmerstraße 1
> 04155 Leipzig
>
> Tel.:       +49 (0)341-25 39 66 - 0
> Fax:        +49 (0)341-25 39 66 - 1
> Funk:       +49 (0)177-73 00 00 3
> E-Mail:     michael.wy...@evermind.de
>
> HRB: 21586
> Amtsgericht Leipzig
>
> Geschäftsführer:
> Christoph Klemm
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to