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

  1. #1

    Default Form validation

    Hi all,

    I am using form validation to authenticate users. In the web config file I
    secure a page that has only the following statement:
    response.writeFile(page.mapPath("..\attachments\We b Resume.doc"))
    Even thought the user has loged in, when this statement executes the user is
    redirected to the user logon page. And the file in the response.writeFile
    statement is not secured, so I can not determine what causes the redirect.

    Any ideas as to what causes this?

    Thanks in advance

    Jake



    Jake Guest

  2. Similar Questions and Discussions

    1. Form Validation - Can this be done?
      I have a form with several dropdown menus. One dropdown menu has two options yes - no Depending on which option is selected, i want the following...
    2. CFFORM Validation trumping Custom Form Validation
      Is there any way for custom form validation to work in concert with the cfform validation? I have a custom script that compares the values of two...
    3. form validation in asp.net
      I want to verify that a email has been entered in a simple asp.net form that is being sent as an email. I found the RequiredFieldValidator Tag is...
    4. copy and paste form RTF document into field in asp form cause it to bypass field length and javascript validation - how to overcome?
      I have a web form with several fields. If I copy & paste from a RTF document into a field, the javascript validation and field length are bypassed...
    5. get rid of form validation
      I added form validation in MX and then deleted some form fields, so needed to change the validation behavior. I deleted the On blur from the...
  3. #2

    Default form validation

    Hello:

    I want to validate e-mail field in my form in such a way that if some one eters an email address ending with @hotmail.com or @yahoo.com then on submiting the form it gives error message.
    Is there any extension available? please help me.

    Thanks in advance
    classna


    zeb webforumsuser@macromedia.com Guest

  4. #3

    Default Re: form validation

    Check out this site, just see how they did it, learn from it, work it into your site.

    [url]http://developer.netscape.com/docs/examples/javascript/formval/overview.html[/url]

    Goodluck!

    Robert Jansen



    mrjansuh Guest

  5. #4

    Default Form Validation

    I have a questionnaire form, each question is in it's own layer. I have one
    question with a Yes/No boolean (radio button) and if the user selects Yes it is
    show the LayerName layer and if No show the LayerThankYou function. How do I
    get this to work? Also, each layer has an Enter button to move to the next
    question. I do not have the enter button submitting that question's
    information to the database, rather they are set to NONE with all of the layers
    within one large form field and a Save Questionnaire button at the bottom of
    the page to submit all of the results to the database. Should each question's
    ENTER button be a submit form? Code for Yes/No is as follows: { if
    (document.theForm.OptAnotherDR[0].checked)
    document.theForm.LayerThankYou.focus(); return (false); } { if
    (document.theForm.OptAnotherDR[1].checked)
    document.theForm.LayerName.focus(); return (false); } return (true); }

    cheektech Guest

  6. #5

    Default form validation

    I have recently ran into an issue with Dreamweaver standard validation and
    Yaromat Check Form MX validation. Neither are working correctly. When I add
    validation to a form, then go fill it out - the form does 1 of two things
    happen depending on which browser I am using (IE, Firefox, Netscape). Either
    the required pop up box doesn't list all required fields that I have checked or
    it will list them but when those fields are filled out it still pops up the
    required fields box and says they haven't been filled in. I have been doing
    this for many years and have just recently ran into this problem on 2 sites
    that I am working on. Any thoughts would be greatly appreciated.

    tda2 Guest

  7. #6

    Default Form validation

    Can you please see why this form won't validate on submit. It is generated by
    the CFForm tag. Never had a problem like this before.
    [url]http://www.amplecom.com/new/?products=productDemo&product=ampleShop[/url] You
    can se the same problem with the short form on the test page:
    [url]http://www.amplecom.com/new/test.cfm[/url] Please enable script debug in IE. Thanks!

    Ad Bec Guest

  8. #7

    Default Re: Form validation

    Using the JS console in Firefox, it reports:

    Error: _CF_hasValue is not defined
    Source File:
    [url]http://www.amplecom.com/new/?products=productDemo&product=ampleShop[/url]
    Line: 173

    So the CF function _CF_hasValue is not defined. This seems to be occuring
    because the included JS library cannot be found. You will notice in the
    rendered output there is:

    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"
    SRC="/CFIDE/scripts/cfform.js"></SCRIPT>

    Try accessing that JS source and it will return a 404, so you probably have a
    mapping problem with the CFIDE dir.

    Bryan

    blewis Guest

  9. #8

    Default Re: Form validation

    [url]http://www.macromedia.com/go/tn_18653[/url]

    --
    Ken Ford
    PVII Support Team
    [url]http://www.projectseven.com[/url]
    Team Macromedia Volunteer - Dreamweaver
    Certified Dreamweaver MX 2004 Developer


    "Ad Bec" <webforumsuser@macromedia.com> wrote in message news:d1kubo$rjb$1@forums.macromedia.com...
    > Can you please see why this form won't validate on submit. It is generated by
    > the CFForm tag. Never had a problem like this before.
    > [url]http://www.amplecom.com/new/?products=productDemo&amp;product=ampleShop[/url] You
    > can se the same problem with the short form on the test page:
    > [url]http://www.amplecom.com/new/test.cfm[/url] Please enable script debug in IE. Thanks!
    >

    Ken Ford - *TMM* & PVII Guest

  10. #9

    Default Form Validation

    I'm struggling with the forms functions in DWMX. If I ask a behaviour to make
    a form field mandatory, I click on the form and tab from field to field down
    the form the MM and Yaromat behaviours pick up that theres no data being
    entered with a nice error box and then allows the cursor onto the next field
    ignoring the error. Is there a way to make the cursore return to the field the
    error was detected in? I assume its some form of 'form.focus' command. I
    wonder maybe if theres a more comprehensive form validation extn out there -
    suggestions anyone Many Thanks Jerry

    Aquanaut Guest

  11. #10

    Default Re: Form Validation

    Use " fieldname.blur" and your validation search in google you will get lot
    arusmart Guest

  12. #11

    Default Re: Form Validation

    I very must doubt that there is one in javascript because the issue would be
    if a page had multiple validation errors the page would not know which field
    to give focus to.

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "Aquanaut" <jerry@thedemocentre.com> wrote in message
    news:d3qsem$cm5$1@forums.macromedia.com...
    > I'm struggling with the forms functions in DWMX. If I ask a behaviour to
    make
    > a form field mandatory, I click on the form and tab from field to field
    down
    > the form the MM and Yaromat behaviours pick up that theres no data being
    > entered with a nice error box and then allows the cursor onto the next
    field
    > ignoring the error. Is there a way to make the cursore return to the
    field the
    > error was detected in? I assume its some form of 'form.focus' command. I
    > wonder maybe if theres a more comprehensive form validation extn out
    there -
    > suggestions anyone Many Thanks Jerry
    >

    Paul Whitham TMM Guest

  13. #12

    Default Form Validation

    Can someone please help me to validte forms what I would like is the errors to show up on the same page.

    :confused;

    Thanks Ben
    beneboy9 Guest

  14. #13

    Default Re: Form Validation

    you have in DW a behavior to validate forms; it shows errors in a pop-up
    window

    beneboy9 wrote:
    > Can someone please help me to validte forms what I would like is the errors to show up on the same page.
    >
    > :confused;
    >
    > Thanks Ben
    Manuel Socarras Guest

  15. #14

    Default Re: Form Validation

    I know that you can do that i would like the errors to show up beside the problem input box. on the actul page not in a alert box.
    beneboy9 Guest

  16. #15

    Default Re: Form Validation

    aaaah! i guess you cant have the errors texts hidden and make it visible
    using JS.
    where? well, one option would be in layers but perphaps you'll have
    problems with position them correctly in different browsers. not sure,
    but probably CSS will be an option. do a research meanwhile an expert in
    that subject like Paul Whitham have something to say

    beneboy9 wrote:
    > I know that you can do that i would like the errors to show up beside the problem input box. on the actul page not in a alert box.
    Manuel Socarras Guest

  17. #16

    Default Re: Form Validation

    thanks for the info

    beneboy9 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