Modify ↓
Ticket #321 (closed bug: wontfix)
getScript doesn't handle "file not found" errors
| Reported by: | choan.galvez@… | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | ajax | Version: | |
| Keywords: | getscript 404 | Cc: | |
| Blocking: | Blocked by: |
Description
getScript doesn't handle "file not found" errors, so when a script is not found, it tries to eval the 404 file (HTML).
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

So far there is almost no error handling in the jQuery core. I'm not sure if jQuery should handle this.
If it should: What is the best way to detect a 404 error?