Copy link to clipboard
Copied
I'm using a CFC with autosuggesting on a text input on a form, but when a user enters in something that is not provided by the CFC, they get an error. I'm using the autosuggest to show available things, but don't want to punish them if they're looking for something that's not available. Is there a way to suppress these errors?
Copy link to clipboard
Copied
Yes, you can set a global error handler for ColdFusion AJAX:
ColdFusion.setGlobalErrorHandler(functionName)
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS0ef8c004658c1089-6262c847120f1a3b244-7fcc.html