Skip to main content

Bug Tracker

Side navigation

#9929 closed bug (invalid)

Opened July 28, 2011 11:49AM UTC

Closed August 13, 2011 08:02AM UTC

errors not reported from pages loaded by .load()

Reported by: egan.landofwar@gmail.com Owned by: egan.landofwar@gmail.com
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

Attachments (0)
Change History (3)

Changed July 28, 2011 01:21PM UTC by rwaldron comment:1

component: unfiledajax
owner: → egan.landofwar@gmail.com
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.

Changed July 29, 2011 06:03PM UTC by anonymous comment:2

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?

Changed August 13, 2011 08:02AM UTC by trac-o-bot comment:3

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!