I'm with you Richard. I have a hidden div that loads the spinner and in the AJAX onCreate I disable the form and unhide the div while in the onComplete I hide the div and enable the form.
What I have found is that if the AJAX call starts and completes quickly then the spinner never gets displayed as the browser is smart enough not to do a repaint if not needed. On Tue, Oct 11, 2011 at 7:12 AM, Richard Quadling <rquadl...@gmail.com>wrote: > On 11 October 2011 00:04, nelian <i...@myskills.co.za> wrote: > > I am somewhat new to AJAX, but one thing that I have not touch upon is > > the following - > > > > When my App is making an AJAX call, from the users perspective it > > seems to be doing nothing, how does one go about freezing the page > > (Not sure what else to call it) and indicate to the user that > > something is happening? > > (I have seen it on a couple of sites, but cannot seem to find an > > example at the moment) > > > > Thanks in advance for the help > > > > Ian > > > > -- > > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > > > > > I use the Ajax.Responders > (http://api.prototypejs.org/ajax/Ajax/Responders/) to allow me to > handle the creation and completion of all AJAX requests. > > In my requests, I fade in a little spinner image after 0.25s. It fades > out on completion. > > So, if the request is handled in handled in under 0.25s, then no spinner. > > This seems to work quite well for me. > > -- > Richard Quadling > Twitter : EE : Zend : PHPDoc > @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.