Jul 16, 2009, 3:35 PM
[ADDED] [V1.0] AjaxMethods addition
I would like to see a param that is able to run after a success or failure when the method returns. Kinda works like a finally of a try...catch.
Example:
Example:
Coolite.AjaxMethods.DoSomethingCool(param, param, {
success: function(result) {
// TODO do something
},
failure: function(result) {
// TODO do something
},
finally: function(result) {
// TODO: this runs AFTER the success or failure fires.. kind of a clean up type thing, or do some common
// function after the succes or failure runs
}
});