customising ajaxCFC JQuery - Error Handler
The new version of ajaxCFC that runs on jQuery is excellent and has a bunch of nifty helper functions. I have recently had the need to make the end result less developer friendly and more user friendly.
So here we go - how to catch errors with ajaxCFC without using the default error handler.
First turn off the default handler.
url: "/ajax/ecom.cfc",
method: "getProductList",
data: {"CategoryID":0},
success: function(r) {
sDumper(r);
}
});
url: "/ajax/ecom.cfc",
method: "getProductList",
data: {"CategoryID":0},
error: function(r){
//no action required },
success: function(r) {
sDumper(r);
}
});



There are no comments for this entry.
[Add Comment]