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

CFINPUT TEXT ONEXIT

Engaged ,
Aug 06, 2013 Aug 06, 2013

I would like to have triggle JavaScript when user exit input text field.

I just check ColdFusion document. it does not have on exit event, but it has OnValidate.

I thought that onValidate should triggle when user exit the control, it seems the JavaScrip does not triggle.

I would like to know any event triggle for CFINPUT text field when user exit the contorl.

Your help and information is great appreciated,

Regards,

Iccsi,

450
Translate
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

Guide , Aug 06, 2013 Aug 06, 2013

@Iccsi,

There are not direct "hooks" to all of the JavaScript event triggers in the ColdFusion-built form controls (like CFINPUT).  However, you should be able to write your own JavaScript code.  If you are comfortable using jQuery, you can use the .blur() event handler (or the on("blur", handler) syntax if you don't want to use the .blur() shortcut).  Here's a link to the jQuery API docs.

HTH,

-Carl V.

Message was edited by: Carl Von Stetten - added link to jQuery docs.

Translate
Guide ,
Aug 06, 2013 Aug 06, 2013

@Iccsi,

There are not direct "hooks" to all of the JavaScript event triggers in the ColdFusion-built form controls (like CFINPUT).  However, you should be able to write your own JavaScript code.  If you are comfortable using jQuery, you can use the .blur() event handler (or the on("blur", handler) syntax if you don't want to use the .blur() shortcut).  Here's a link to the jQuery API docs.

HTH,

-Carl V.

Message was edited by: Carl Von Stetten - added link to jQuery docs.

Translate
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
Engaged ,
Aug 07, 2013 Aug 07, 2013
LATEST

Thanks a million for helping and information,

Regards,

Iccsi,

Translate
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