// sample of using a variable as a switch var preventEvent = 0; $.ajax({ url: "heavyAJAXCall.php", success:function(html) { preventEvent = 1;
} }); if(preventEvent == 0) { // do ajax } else { // do nothing ] On Wed, Jun 10, 2009 at 6:53 PM, bob.nel...@gmail.com <bob.nel...@gmail.com>wrote: > > Hey All, > > So I have a site that utilizes Ajax (via Jquery) alot with timed > interval events, etc. There are certain sections in the application > that pull in a LOT of data. Sometimes, if the user starts one of these > ajax heavy tasks, one (or more) of these timed ajax events might get > called. > > I'd like to be able to disable any other ajax requests when the user > starts one of these heavy tasks. Anyone have any ideas on how to > accomplish this?