On Aug 22, 1:05 am, Tamm <[EMAIL PROTECTED]> wrote: > I'm working on a function that sends far too many ajax calls, an easy > way to take care of the problem would be to kill all ajax calls before > sending a new one (i.e. if it isn't done yet, nvm the result) > > the xhr object idea works for one call or if you know all the previous > calls but I simply want to kill ANY ajax calls currently not > completed...
John Resig made a post about a week (maybe two?) ago with some prototype code implementing serial ajax queues. If i'm not mistaken, that code should provide a way to kill the queue, or at least stop any requests which haven't already gone out. You'll have to search the archives to find the link, though... i didn't bookmark it.