Hi friends,

The $.ajax method takes callback functions for success, error... scenarios,
and calls them as and when required.
But, this success/error conditions are defined internally by jquery based on
the http status codes and such.

It would be more useful if we could specify what determines success and
error condition (overriding the default of jquery).
This way, application specific error conditions can be handled more
gracefully.

I found that mootools allows us to specify such a condition, and wasn't able
to find an equivalent in jquery. Is there any obvious way that i am missing?

At present, i am using the global ajaxSuccess callback handler to simulate a
similar feature for my app, but thought it would be cool if the feature was
available in the core itself.

Thoughts?

-GTG

Reply via email to