Re: AjaxFormSubmitBehavior need timeout event

2018-01-26 Thread Martin Grigorov
Hi,

You can use the failure callback for non-200 responses.
I am not sure whether jQuery calls them for timeouts too.
jQuery 3.3.0+ just added specific callback for timeouts (
http://blog.jquery.com/2018/01/19/jquery-3-3-0-a-fragrant-bouquet-of-deprecations-and-is-that-a-new-feature/,
"Add an ontimeout handler to all requests (#3586
, 262acc6f

)")
You can also use jQuery's global Ajax event handlers.

On Thu, Jan 25, 2018 at 9:10 PM, Entropy  wrote:

> I need to get an event on the browser side from one of my
> AjaxFormSubmitBehaviors in the event of a timeout or a non-200 response
> (and
> preferably the ability to distinguish between the two).  I'm in Wicket 6.24
> in this app.  Anyone know how I would plug into that event?
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


AjaxFormSubmitBehavior need timeout event

2018-01-25 Thread Entropy
I need to get an event on the browser side from one of my
AjaxFormSubmitBehaviors in the event of a timeout or a non-200 response (and
preferably the ability to distinguish between the two).  I'm in Wicket 6.24
in this app.  Anyone know how I would plug into that event?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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