Bug Tracker

Modify

Ticket #7363 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

ajax() fails silently in callbacks -- "complete" callback never happens

Reported by: anonymous Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

karl suggested this belongs in the bug tracker, so here it is:

WRT ajax():

The optional "complete" callback does not seem to fire if an exception is thrown by the "success" or "error" callbacks.

Exceptions thrown by "success" or "error" callbacks DISAPPEAR SILENTLY if async:true (default option.)

This was on 1.4.2. I don't know if it continues to be true of 1.4.3, or the bleeding edge.

Please be sure to reply to this comment to let readers know in what version this bug is present or not present :)

 http://api.jquery.com/jQuery.ajax/#comment-86962051

Change History

comment:1 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to invalid

Thanks for the report, but this is not a jQuery bug. You are responsible for not managing any exceptions raised by your callback functions.

comment:2 Changed 3 years ago by anonymous

Unsurprisingly the same problem affects .load()

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.