• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

bind cfc to onBlur event

Participant ,
Oct 26, 2011 Oct 26, 2011

Copy link to clipboard

Copied

is there a way to bind a cfc method to the onBlur event of a text field? in other words, after the user typed something in a text field, can i check that string against a db query and see if it`s a duplicate before submitting the form?

TOPICS
Advanced techniques

Views

901

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Oct 26, 2011 Oct 26, 2011

With regard to capturing the event, yes it is possible using "@". See the event value section for more details.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxdata_04.html

Votes

Translate

Translate
LEGEND ,
Oct 26, 2011 Oct 26, 2011

Copy link to clipboard

Copied

Probably, but this reply concerns what happens if it is a duplicate.  With onblur(), or onchange() If you simply display some information to the user, that user can ignore the information and submit the form anyhow.  That may or may not be what you want.

Also, if you are using onblur(), make sure you take into account that the user could exit the field without having entered any text.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 26, 2011 Oct 26, 2011

Copy link to clipboard

Copied

With regard to capturing the event, yes it is possible using "@". See the event value section for more details.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxdata_04.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 04, 2011 Nov 04, 2011

Copy link to clipboard

Copied

LATEST

thanks a lot, works

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation