Bug Tracker

Opened 14 years ago

Closed 14 years ago

#1274 closed bug (fixed)

ajaxSend(callback), ajaxSuccess(callback) problems in jQuery 1.1.2

Reported by: Heflying Owned by:
Priority: major Milestone: 1.1.4
Component: docs Version: 1.1.3
Keywords: ajax, jQuery, bug Cc:
Blocked by: Blocking:

Description

$("#msg").ajaxSend(function(request, settings){

$(this).append("<li>Starting request at " + settings.url + "</li>");

});

Problem: settings.url return "undefined".

In fact,the callback is "function(obj, request, settings)"

obj: [an object] I do not know what object.

request: the XMLHttp object.

settings: ajax settings

我不知道这是不是一个bug,同样的问题还存在ajaxError(callback),ajaxSuccess(callback)等函数中。

Change History (2)

comment:1 Changed 14 years ago by malsup

This is a bug in the docs. Trigger passes the event as the first object.

comment:2 Changed 14 years ago by john

Component: ajaxdocs
Milestone: 1.1.31.1.4
Resolution: fixed
Status: newclosed
Version: 1.1.21.1.3

Fixed the docs.

Note: See TracTickets for help on using tickets.