Just an idea... 1-Use a flag on the client to control you are on an AJAX request (set it at the begining and unset it at the end) 2-Combine this with a setTimeout(showMyAjaxVeil, 2000) and on showMyAjaxVeil function see if this flag is still set and if so show the div. 3-Hide the div at the end of the request and unset the flag.
I don't know if this might work neither if you will have some "synchronization" issues. Ernesto On Wed, Jun 2, 2010 at 11:17 AM, <[email protected]> wrote: > Hi all, > > I use IAjaxIndicatorAware to display a div like a modal window 'please wait' > when a javascript call is processing. I found this interface very usefull > because it is simple to implement and the behavior is the same for all > component in the web app that needs an indicator when processing ajax calls. > > I would like to override this behavior to display the div only when an ajax > call takes more than 2 seconds for example to be executed. So for a little > ajax call less than 2 seconds, I would like that nothing appears. > > I've seach solutions but I found nothing, how would you do that? > > Thanks > > > Aurélie > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
