Skip to content

Instantly share code, notes, and snippets.

@65
Created March 10, 2012 10:22
Show Gist options
  • Save 65/2011075 to your computer and use it in GitHub Desktop.
Save 65/2011075 to your computer and use it in GitHub Desktop.
customising ajaxCFC JQuery - Error Handler
$.AjaxCFC({
url: "/ajax/ecom.cfc",
method: "getProductList",
data: {"CategoryID":0},
success: function(r) {
sDumper(r);
}
});
$.AjaxCFC({
url: "/ajax/ecom.cfc",
method: "getProductList",
data: {"CategoryID":0},
error: function(r){
//no action required
},
success: function(r) {
sDumper(r);
}
});
$.AjaxCFCHelper.setUseDefaultErrorHandler(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment