Hi,

On Thu, Dec 5, 2013 at 2:58 PM, Marieke Vandamme <marieke.vanda...@tvh.be>wrote:

> Hi,
>
> Okay, I'll do my best to explain more in detail.
>
> When doing an ajax call, we want to show a busy indicator on the page, so
> that the user knows that something is happening and that he must wait for
> the ajax response. This can be done by adding the Generic busy indicator
> (as
> described on the wiki page I linked above). This binds the event before an
> ajax call with following code:
> / Wicket.Event.subscribe('/ajax/call/beforeSend', function( attributes,
> jqXHR, settings ) { showBusysign() });/
>
> For some ajax events, it's not needed to show the busy indators. Now we
> have
> such a case, with a timer, and we don't want to disturb the customer when
> doing the ajax call. On the wiki page with the example, it's explained that
> for specific ajax calls, you can check things, so that the indicator is not
> showing. But the example is for AjaxLinks, where you have an element that
> was clicked, and that element can be retrieved with "event.srcElement" in
> javascript. We use the AjaxSelfUpdatingTimerBehavior, so we don't have an
> element that is clicked.
> Is there a way that we can retrieve the element that the timer is put on?
> Something like "event.srcElement"?
>

Yes, there is: document.getElementById(attributes.c)


>
> I wanted to comment on the wiki article with this question too, but found
> no
> way to add comment..
>
> Thanks again! Kind Regards, Marieke
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Generic-busy-indicator-override-for-AjaxSelfUpdatingTimerBehavior-tp4662800p4662803.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to