2009/8/26 Hector Virgen <djvir...@gmail.com>:
> Thanks, Rupak, but I was hoping to be able to accomplish this without a
> plugin. What I'm thinking of doing is storing the XMLHttpRequest object as a
> local variable early on, like in the beforeSend callback.

No need to make it so complex; from <http://docs.jquery.com/Ajax/jQuery.ajax>:

"$.ajax() returns the XMLHttpRequest that it creates. In most cases
you won't need that object to manipulate directly, but it is available
if you need to abort the request manually."

So just do something like:

xhr = $.ajax(blah);

and when you want to abort the request, use

xhr.abort();

Regards,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/

Reply via email to