Skip to main content
Inspiring
November 10, 2010
質問

Suppressing Bind Errors

  • November 10, 2010
  • 返信数 1.
  • 473 ビュー

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?

このトピックへの返信は締め切られました。

返信数 1

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