Bug Tracker

Modify

Ticket #3984 (closed bug: fixed)

Opened 4 years ago

Last modified 3 years ago

XmlHttpRequest.abort() does not fire ajaxStop event

Reported by: klaus Owned by: john
Priority: minor Milestone: 1.4
Component: ajax Version: 1.4a2
Keywords: abort cancel Cc:
Blocking: Blocked by:

Description

The ajaxStop event is not being fired if a request is canceled via XmlHttpRequest abort method.

var xhr = $.ajax(...);
xhr.abort();

Seems to be expected behavior.

Taken from  http://ui.jquery.com/bugs/ticket/3903: "Whenever this happens the variable used for the global ajax count jQuery.active should be decremented or ajaxStop will never be fired."

Change History

comment:1 Changed 4 years ago by john

  • Owner set to john

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Version changed from 1.3.1 to 1.4a2
  • Resolution set to fixed
  • Milestone changed from 1.3.2 to 1.4

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.