Op 13-aug-2006, om 19:05 heeft John Resig het volgende geschreven: > I agree with Mike - especially considering that its impossible to know > that an AJAX operation will take less than 1 second to complete - > preemptively stopping a spinner from firing may cause more problems > than it's work. > > With that said, here is how I would do it: > > var doSpinner = true; > > $(document).ajaxStart(function(){ > if ( doSpinner ) > // Show spinner > }); > > // ... when you want to stop it: > > doSpinner = false; > $.get( ... ); > doSpinner = true; > > --John Could you give a little more in detail example? One that actually work? I'm trying to get some AJAX-funkyness (incl. the throbber/spinner) to work for a long time now, though I did not had any luck yet.. :-(
Kind regards, Steef _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/