Just regarding the issue of jsonp, I'll ponit you to my own jsonp plugin: http://code.google.com/p/jquery-jsonp/ I too agree jsonp is a bit too specific for an inclusion within $.ajax but the proposed solution of returning a wrapper around the xhr could help smoothing out differences.
Regarding the race condition, well, it all depends how this error() method is implemented really. I was more concerned about the bind() approach John was proposing. 2009/11/10 Dave Methvin <dave.meth...@gmail.com> > > Couldn't you just use the .ajaxError() method in conjunction with > > $.get or $.post? That seems to work for me. > > I use that technique as well, and it's nice because it gets the error > checking out of the way of the main code. I also have used a wrapper > plugin around $.ajax in some cases. Neither is burdensome. > > $.ajax is already one of the most complex and least consistent methods > in jQuery, so if anything I'd like to see it get simpler. For example, > the method now handles jsonp requests (based on either dataType or the > domain in the url) but many of the completion methods expect a xhr > object which jsonp requests don't have. > > -- > > 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<jquery-dev%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/jquery-dev?hl=. > > > -- 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=.