You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by coincoinfou <ol...@gmail.com> on 2011/07/22 20:31:01 UTC

Avoid doing lot of Ajax request

I have alot of "onmouseover" ajax request in one panel. How to avoid queuing
all request when mouse move is too fast and ideally only do the last ? I
tried with a thread but i'm out of the context : "no application is defined"

Thank you

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Avoid-doing-lot-of-Ajax-request-tp3687472p3687472.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Avoid doing lot of Ajax request

Posted by Clint Checketts <ch...@gmail.com>.
I'm not sure I understood your response. Are you saying you don't want to
set the throttle for every link you do? If so, sub-class it and reuse your
special subclass that always throttles.

On Sat, Jul 23, 2011 at 2:06 AM, coincoinfou <ol...@gmail.com>wrote:

> But I have to throttle delay for a set of same type links not only one
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Avoid-doing-lot-of-Ajax-request-tp3687472p3688488.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Avoid doing lot of Ajax request

Posted by coincoinfou <ol...@gmail.com>.
But I have to throttle delay for a set of same type links not only one

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Avoid-doing-lot-of-Ajax-request-tp3687472p3688488.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Avoid doing lot of Ajax request

Posted by Clint Checketts <ch...@gmail.com>.
You can throttle events.

See setThrottleDelay() on your behavior.

On Fri, Jul 22, 2011 at 1:31 PM, coincoinfou <ol...@gmail.com>wrote:

> I have alot of "onmouseover" ajax request in one panel. How to avoid
> queuing
> all request when mouse move is too fast and ideally only do the last ? I
> tried with a thread but i'm out of the context : "no application is
> defined"
>
> Thank you
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Avoid-doing-lot-of-Ajax-request-tp3687472p3687472.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>