Skip to main content
Inspiring
November 10, 2010
Question

Suppressing Bind Errors

  • November 10, 2010
  • 1 reply
  • 472 views

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?

This topic has been closed for replies.

1 reply

Participating Frequently
November 19, 2010

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