On Mon, Sep 7, 2009 at 12:08 PM, John Snyders<jjsnyd...@rcn.com> wrote:
>
> I would like to add my opinion.
...
> I do not think individual callbacks for each status code are a good
> idea.

Why?

Do you not use XHR with services where you need to do different things
depending on which 4xx code (for example) you receive back?  Or do you
just prefer to organize your branching as a switch/case or if/elseif
within an error callback?

In my current app, fairly different handlers are required for say, 401
than 405 or 404, and embedding the branching within switch/case or
if/elseif is ugly and inflexible.  This also happens to be a feature
which would be much simpler and better to implement in the core ajax
code than in a plugin.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to