Professional Web Applications Themes

Flash Form Text Input onchange - Macromedia ColdFusion

Is there a way, with <cfform format="flash"> <cfinput type="text" name="abc"> to write an event handler that will function when form element abc loses focus? If I do this: <cfinput type="text" name="abc" onchange="doSomething();"> the doSomething function runs on every keystroke....

  1. #1

    Default Flash Form Text Input onchange

    Is there a way, with
    <cfform format="flash">
    <cfinput type="text" name="abc">

    to write an event handler that will function when form element abc loses
    focus? If I do this:
    <cfinput type="text" name="abc" onchange="doSomething();">

    the doSomething function runs on every keystroke.


    Dan Guest

  2. #2

    Default Re: Flash Form Text Input onchange

    I think you are looking for the onBlur="doSomething();" event handler
    a.benton Guest

  3. #3

    Default Re: Flash Form Text Input onchange

    According to this,
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/
    wwhelp.htm?context=ColdFusion_Doentation&file=0 0000279.htm

    cfinput does not have an onBlur event. You can set up your form element to
    validate on blur
    validateAt= one or more of "onBlur", "onServer", "onSubmit"

    but these are the available events
    onKeyUp = "JavaScript or ActionScript"
    onKeyDown = "JavaScript or ActionScript"
    onMouseUp = "JavaScript or ActionScript"
    onMouseDown = "JavaScript or ActionScript"
    onChange = "JavaScript or ActionScript"
    onClick = "JavaScript or ActionScript"

    The first five run on every keystroke, the last is not applicable to a text
    input.

    Dan Guest

Similar Threads

  1. Flash Form Input Issues with IE7
    By cbarnes@dicksmith.com in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: May 29th, 05:56 PM
  2. form bg color in text input
    By ovydiu in forum Coldfusion - Getting Started
    Replies: 1
    Last Post: September 4th, 02:58 PM
  3. How to pass a form input text value to a javascriptmethod?
    By hypamw in forum Dreamweaver AppDev
    Replies: 0
    Last Post: April 10th, 12:33 AM
  4. flash form: tabnavigator & onChange to change webpage
    By jshaffner in forum Macromedia ColdFusion
    Replies: 10
    Last Post: February 23rd, 07:43 PM
  5. Flash Input Form in 3D World
    By Jens Grubert in forum Macromedia Director 3D
    Replies: 1
    Last Post: October 5th, 12:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139