Created
March 10, 2012 10:22
-
-
Save 65/2011075 to your computer and use it in GitHub Desktop.
customising ajaxCFC JQuery - Error Handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.AjaxCFC({ | |
url: "/ajax/ecom.cfc", | |
method: "getProductList", | |
data: {"CategoryID":0}, | |
success: function(r) { | |
sDumper(r); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.AjaxCFC({ | |
url: "/ajax/ecom.cfc", | |
method: "getProductList", | |
data: {"CategoryID":0}, | |
error: function(r){ | |
//no action required | |
}, | |
success: function(r) { | |
sDumper(r); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.AjaxCFCHelper.setUseDefaultErrorHandler(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment