Skip to main content

Bug Tracker

Side navigation

#13149 closed bug (duplicate)

Opened January 03, 2013 03:44PM UTC

Closed January 26, 2013 09:06PM UTC

Inconsistent browser behavior when using $.ajax with dataType "script" and invalid "url"

Reported by: ipernet Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Simple repro:

Actual result:

  • The error callback ''is not executed'' by Firefox or Chrome when using dataType: "script" with $.ajax and with a 404 URL (or any other HTTP error)
  • IE8+ executes the ''success'' callback, despite the url returns a 404 error.

Expected result:

Error callback should get executed if the URL cannot be loaded when using dataType: "script" for all browsers.

Or at least IE should not execute the success callback in such case.

Attachments (0)
Change History (1)

Changed January 26, 2013 09:06PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Duplicate of #12362.