I think I've seen something like this for stopping ajax calls: var ajaxcall = $.ajax(....) ajaxcall.abort();
As I said, I _think_ I've seen it, could be worth testing if it works. As for calling all the ajax calls, maybe a .each() might do the work? and btw, I noticed that you are making the call everytime I click a button, wouldn't it be better to check if it has already fetched the info and just display it? Unless of course if its changing all the time, even then a update button might be better. Using something like: if (childRow.html() == "") do the call else just slide it down Instead of making a whole lot of .parent() you might want to do something like .parents(".row").attr("id") Hope that some of my rambling makes any sense and helps you out :P //Kristinn On 4/6/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
First a small walk-through of what I've got now: http://www.commadelimited.com/uploads/psychic Right now, if you click any of the black images, it triggers an AJAX call which places it's response in a hidden div. That's easy enough and already works. In an effort to make this work as speedily as possible, I'd like to do following: 1) When ANY "session" first opens, every row that has more data (indicated by the black image which has a class of "nav") should make it's associated AJAX call and return it's information. I would like this to happen with no action from the user. 2) If the user switches to a new accordion section, ideally I'd like to cancel all pending AJAX calls, then trigger new calls for the current accordion section. So, that's my question...is this possible, and if so, how would I do it? The thought is that the user will spend at least a few seconds looking at the basic interface before clicking into any of the details. It would be awesome if, when the user clicks any details image, that the data was already there and the details would just slide open. Anyone have any ideas how to accomplish this, if it's even possible? * ____________________________________ Andy Matthews *Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com