Bug Tracker

Opened 8 years ago

Closed 8 years ago

#9929 closed bug (invalid)

errors not reported from pages loaded by .load()

Reported by: egan.landofwar@… Owned by: egan.landofwar@…
Priority: undecided Milestone: None
Component: ajax Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Description

if there is a error in the loaded page for example var test = {}; test.imInvalid().something(); this will cause the complete callback function not be called, and it doesnt report the error into the console.

im thinking it should iver

  • report the error back into complete callback function
  • report the error back into a new call back function on .load(url, [data], [complete], [error])

and always report back into the console

at the moment it doesnt give any feedback, and it was only luck that i found it by wrapping the javascript inside the loaded page in setTimeout which caused it to be sent to the console

Change History (3)

comment:1 Changed 8 years ago by Rick Waldron

Component: unfiledajax
Owner: set to egan.landofwar@…
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

comment:2 Changed 8 years ago by anonymous

i attempted to create it in there but its even more broken, the external requests come back as errors in the console, the url is valid and response is 200, but no content. any idears?

comment:3 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.