Is there not any way you could package all these AJAX calls into a single call? It may end up with a much cleaner solution than aborting requests after they've been made, and would reduce the perhaps unnecessary overhead of multiple requests.
--rob On 5/24/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
Jeffrey Kretz wrote: > > The page I'm working on has a database-driven table of choices with a > checkbox at the beginning of each row. > > If you click the checkbox on, an Ajax call is made to get additional > information. > > I want to add a "select all" button which will check off all boxes at > once and fire the ajax calls for each. Since a client browser will > only do from 2-4 simultaneous ajax requests, a number of calls will be > queued up for completion by the browser. > > I'd like to add the ability for the user to uncheck the "select all" > button, and have all queued ajax requests to be killed/stopped/whatever. > > Does this make sense? Is there an easy way to do this? > jQuery's ajax methods all return the XMLHttpRequest object they use. You could save a reference to those and call their abort()-method when appropiate. -- Jörn Zaefferer http://bassistance.de
-- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 "There's a whale there's a whale there's a whale fish" he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.