You can use javascript call handlers, ex:
Wicket.Ajax.registerPreCallHandler(
function(){
window.onbeforeunload = function() {
return "There is some activity going on, please wait until
the activity indicator disappears";
};
}
);
Wicket.Ajax.registerPostCallHandler(
function(){
window.onbeforeunload = null;
}
);
On Mon, Sep 6, 2010 at 1:10 AM, koki142 <[email protected]> wrote:
>
> Hi,
>
> I'm trying to show an alert if the user is going to move from current page
> while there is some ajax activity in the background. I have a chat program
> and sometimes if the user writes a message and clicks on different page,
> that message never reach the destination. I want to show something like
> "There is some activity going on, please wait until the activity indicator
> disappears".
>
> Is kind of the same Gmail does, any idea how to do this?
>
> Thank you!
> Oskar
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Alert-on-ajax-activity-tp2527887p2527887.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Pedro Henrique Oliveira dos Santos