Skip to content

Instantly share code, notes, and snippets.

@lsmith
Created August 16, 2009 17:51
Show Gist options
  • Save lsmith/168683 to your computer and use it in GitHub Desktop.
Save lsmith/168683 to your computer and use it in GitHub Desktop.
myDataSource.connMgr = {
asyncRequest: function (req, callback) {
var originalFailureHandler = callback.failure;
callback.failure = function (o) {
if (o.status == '403') {
// Do your thing
} else {
originalFailureHandler(o);
}
};
YAHOO.util.Connect.asyncRequest(req,callback);
},
isCallInProgress : YAHOO.util.Connect.isCallInProgress,
abort: YAHOO.util.Connect.abort
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment