Klaus -- brilliant! The abort method on the XHR object absolutely works. I've been searching for that functionality without success, so thanks very much for the tip.
m. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: Friday, January 12, 2007 7:08 AM To: jQuery Discussion. Subject: Re: [jQuery] Stop an ajax call Roberto Ortelli schrieb: > Dear all, > We've made an ajax upload form attaching multiple files. Now, we would > like that the user can stop the attaching process of file by clicking > on a link. > > How can we kill an ajax call with jQuery? If you use $.ajax for your remote calls it returns the XHR object...: var xhr = $.ajax({...}); You can then stop it using the given function: xhr.abort(); I haven't tried that, does that work? -- Klaus _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
