[jQuery] Re: JQuery blockUI plugin - support for queueEmpty function
Solved the problem using $.ajaxStop to call unblockUI. See http://docs.jquery.com/Ajax/ajaxStop On Oct 20, 8:28 am, Subtle subtlekil...@gmail.com wrote: How would I extend blockUI to have a function callback for when the queue is empty? I want to use something like this in a project where I have several queued ajax requests, but I only want to call blockUI on the first request and unblockUI when the queue is empty. Thanks, Russ
[jQuery] Re: JQuery blockUI plugin - support for queueEmpty function
How would I extend blockUI to have a function callback for when the queue is empty? I want to use something like this in a project where I have several queued ajax requests, but I only want to call blockUI on the first request and unblockUI when the queue is empty. You can use the ajaxStart and ajaxStop events for managing concurrent requests. If your requests are really queued then I assume your code would know when the queue empty state changes and you can write your blocking logic around that.