Good catch. Filed and fixed: http://dev.jquery.com/ticket/5838
--John On Fri, Jan 15, 2010 at 7:47 PM, Donald @ White Whale <donaldwhitewh...@gmail.com> wrote: > I read the 1.4 release notes but am a little confused about the > following. I'd guess it's related to the ability to specify ajax > contexts (really neat!), but it breaks some existing code in a web > application I develop. > > 1.2.6/1.3.2 success and error callbacks: > value of this: the options object, so that > this.url: the URL of the request > > This is still the case for the 1.4 success callback, but the error > callback > value of this: DOMWindow > > For context, our app uses $.ajaxSetup() to set the success/error > callbacks to log Ajax requests along the lines of: > error:function() { > messages.html("Sorry, pal, there was an error loading "+this.url); > } > > How can I get the requested URL in 1.4? > > Here's a test case: > http://www.babywhale.net/jquery/ajax.php > > -- > You received this message because you are subscribed to the Google Groups > "jQuery Development" group. > To post to this group, send email to jquery-...@googlegroups.com. > To unsubscribe from this group, send email to > jquery-dev+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/jquery-dev?hl=en. > > > >
-- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.