The xhr object has an abort function, whenever you call an ajax function,
you return the XHR object, so simply map a value from the checkbox name to
the XHR object into an object, and call the abort function when the checkbox
is clicked.

- jake

On 5/24/07, Jeffrey Kretz <[EMAIL PROTECTED]> 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?



JK



Reply via email to