Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default onSubmit question

    Can you make multiple (two) calls to a javascript function for the onSubmit
    event? Currently, I'm calling one JS function like the following:

    <form name="donorapp" onSubmit="stamp()" method="post"
    action="add_to_DB.asp">

    I would like to call a form validation function for onSubmit as well? Do I
    just add the function name, i.e. onSubmit="stamp() ; validate()" or
    something similar? I've tried, but it isn't working, so I thought the
    syntax was incorrect? Thanks in advance.
    -D-


    Dwayne Epps Guest

  2. Similar Questions and Discussions

    1. Client Side ValidateAt onSubmit without the alert box?
      My coworker thought he saw an example of this, but we can't find it now. In a flash form, I want to do validateAt="onSubmit" (on client) and red...
    2. Basic CFMail and onSubmit question
      Try changing <form name= "validation" onSubmit action="thanks.cfm" method="post"> to <form name= "validation" action="thanks.cfm" method="post">
    3. MX7 problem with cfform onSubmit behavior
      Mike says, "This is a known bug, we found this to late in the development cycle to get it in." I can't find any other documentation about this bug...
    4. onSubmit
      Is there a way to use the onSubmit action in a cfform since coldfusion uses that to run it stuff for verification? Thanks in advance!!
    5. CFFORM onSubmit()
      I have been trying to figure this one out. Haven't found the solution by searching the forums. I'm hoping someone else has come across this and will...
  3. #2

    Default Re:onSubmit question

    I am not sure about the onSubmit in the form tag. Also I am not sure about calling 2 javascript functions at the same time. You can call one and have that call another.
    Anyway, this is how ur form should look

    <form name="form1" method="post" action="xxx.php">

    lastname <input name="name" type="text" id="name">

    <input type="submit" name="Submit" value="Submit" onClick="your function()">
    </form>

    Hope you get the idea. When it comes to form validation, there are plenty of extensions available out there. DMX comes with one, very simple, if you want a litle bit of advanced, search for an extension by yaromat, seems to be popular at the moment.

    Pistolfire99


    Pistolfire99 webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may 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