|
From: Zoran K. <z.k...@fu...> - 2007-01-29 15:36:14
|
> Another suggestion from the wicket mailinglist. Shall I add this also?
I hope you already have ;)
> ---------- Forwarded message ----------
> From: Marc-Andre Houle <mh...@gm...>
> Date: Jan 29, 2007 3:41 PM
> Subject: Re: [Wicket-user] in-progress indicator
> To: wic...@li...
>
> I don't know if it can help, but for us, we added this code in our base
> page
> to make the cursor change when there is an ajax call in progress :
> <script language="Javascript" type="text/javascript">
> Wicket.Ajax.registerPreCallHandler(function() {
> document.getElementById("main").style.cursor='progress'; });
> Wicket.Ajax.registerPostCallHandler(function() {
> document.getElementById ("main").style.cursor='auto'; });
> Wicket.Ajax.registerFailureHandler(function() {
> document.getElementById("main").style.cursor='auto'; });
> </script>
|