[jQuery] Re: How to cancel an AJAX request?

2009-08-26 Thread Hector Virgen
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. var xmlHttpRequest = null; $.ajax({ /* ... */ beforeSend: function(request) {

[jQuery] Re: How to cancel an AJAX request?

2009-08-26 Thread Cesar Sanz
Why to re-invent the wheel? - Original Message - From: Hector Virgen To: jquery-en@googlegroups.com Sent: Wednesday, August 26, 2009 9:43 AM Subject: [jQuery] Re: How to cancel an AJAX request? Thanks, Rupak, but I was hoping to be able to accomplish this without a plugin

[jQuery] Re: How to cancel an AJAX request?

2009-08-26 Thread Hector Virgen
, Aug 26, 2009 at 9:16 AM, Cesar Sanz the.email.tr...@gmail.comwrote: Why to re-invent the wheel? - Original Message - *From:* Hector Virgen djvir...@gmail.com *To:* jquery-en@googlegroups.com *Sent:* Wednesday, August 26, 2009 9:43 AM *Subject:* [jQuery] Re: How to cancel an AJAX

[jQuery] Re: How to cancel an AJAX request?

2009-08-26 Thread Nick Fitzsimons
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

[jQuery] Re: How to cancel an AJAX request?

2009-08-25 Thread rupak mandal
Hi Hector, you have to use abort function. go through this link http://www.protofunc.com/scripts/jquery/ajaxManager/ Thanks Rupak On Wed, Aug 26, 2009 at 2:25 AM, Hector Virgen djvir...@gmail.com wrote: Hello, Is there a way to stop or cancel an ajax request on demand, similar to pressing