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

Reply via email to