Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12101 closed bug (notabug)

ajaxStart working for .load(), but not for .ajax()

Reported by: ShawmutSteve@… Owned by:
Priority: low Milestone: None
Component: ajax Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

http://jsfiddle.net/SXkck/40/

Click 'Trigger' - ajaxStart() is not fired.

Uncomment the .load() line, and Run. When you click the Trigger text, ajaxStart() will fire.

Change History (4)

comment:1 Changed 7 years ago by dmethvin

Cc: jaubourg added
Status: newopen

Confirmed. Seems to have been broken since 1.5?

Last edited 7 years ago by dmethvin (previous) (diff)

comment:2 Changed 7 years ago by jaubourg

The sample request is a jsonp request, ie a script request. Global events are not triggered for those as is stated (not that clearly sadly) in the Advanced Options section of the ajax docs. That's because the requests are not guaranteed to complete.

comment:3 Changed 7 years ago by mikesherov

Component: unfiledajax

comment:4 Changed 7 years ago by mikesherov

Cc: jaubourg removed
Priority: undecidedlow
Resolution: notabug
Status: openclosed

As this is documented and intended behavior, closing as "not a bug".

Note: See TracTickets for help on using tickets.