Bug Tracker

Opened 7 years ago

Closed 6 years ago

#8428 closed bug (fixed)

ajax.timeout documentation should mention the xhr object is in an invalid state

Reported by: anonymous Owned by: kswedberg
Priority: low Milestone: 1.next
Component: ajax Version: 1.4.3
Keywords: neededdocs Cc: jaubourg
Blocked by: Blocking:

Description

For jQuery releases that return an XMLHttpRequest object (instead of 1.5's jqXHR object), the documentation for the timeout property should mention that the xhr object will be in an invalid state if the request times out, and the simple act of accessing some (all?) members will throw an error.

If this is the case for the jqXHR object as well (I don't know, haven't tested), the documentation should reflect it.

Change History (3)

comment:1 Changed 7 years ago by jaubourg

Component: unfiledajax
Keywords: needsdocs added
Priority: undecidedlow

comment:2 Changed 7 years ago by jaubourg

Owner: set to kswedberg
Status: newassigned

Assigning to Karl so that he can track this.

comment:3 Changed 6 years ago by addyosmani

Cc: jaubourg added
Keywords: neededdocs added; needsdocs removed
Resolution: fixed
Status: assignedclosed

Docs for this have been updated: http://api.jquery.com/jQuery.ajax/ - @jaubourg, could you review the changes under timeout and let us know if we're missing anything else that should be included relating to this ticket?.

Note: See TracTickets for help on using tickets.