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

  1. #1

    Default Avoid Insert

    I have an insert page and have written some javascript to validate the page.

    The validation works great but I need to stop the insert if the user fails
    the validation.

    How do I do this ?




    Henry Guest

  2. Similar Questions and Discussions

    1. How can I avoid NaN
      When my .swf loads the variables from the .txt file (days=2&hours=17&minutes=10&seconds=56), the swf file starts and shows seconds "56" for one...
    2. How to avoid this
      Hi, I have a project where when the user scroll over the buttons a picture or movie display on the screen. All works fine, but moving between...
    3. INSERT statement contains fewer items than the insert list
      The block of code below shows how I am inserting field values into my dbase table: strSQLStatement = "INSERT INTO tblArticles...
    4. Avoid SmartNavigation
      I've done some investigating about various problems with the SmartNavigation feature. It seems to me that the general consensus is to avoid...
    5. avoid writing to log file on insert
      Is there any way to NOT write to the Log File when doing an INSERT on a database setup as Simple? I am hoping there's some T-SQL syntax that can...
  3. #2

    Default Re: Avoid Insert

    > The validation works great but I need to stop the insert if the user fails
    > the validation.

    If the validation fails, have the function return false so the form doesn't
    submit.

    --
    Bryan Ashcraft (remove brain to reply)
    Paragon Visuals :: [url]http://www.paragonvisuals.com[/url]
    TMM Volunteer (DW) :: [url]http://www.macromedia.com/go/team[/url]
    ----------------------------------------------------------------
    Got Questions? Get Answers!
    Extending Knowledge - Daily
    [url]http://www.CommunityMX.com[/url]
    --


    Bryan Ashcraft Guest

  4. #3

    Default Re: Avoid Insert

    On Thu, 17 Jul 2003 12:58:47 -0500, "Bryan Ashcraft"
    <bryan@paragonvisualsBrain.com> wrote:
    >> The validation works great but I need to stop the insert if the user fails
    >> the validation.
    >
    >If the validation fails, have the function return false so the form doesn't
    >submit.
    You also need to validate on the server because your validation will
    not do anything if the user has JavaScript turned off.


    Gary
    Gary White Guest

  5. #4

    Default Re: Avoid Insert

    > You also need to validate on the server because your validation will
    > not do anything if the user has JavaScript turned off.
    Very good point Gary.

    --
    Bryan Ashcraft (remove brain to reply)
    Paragon Visuals :: [url]http://www.paragonvisuals.com[/url]
    TMM Volunteer (DW) :: [url]http://www.macromedia.com/go/team[/url]
    ----------------------------------------------------------------
    Got Questions? Get Answers!
    Extending Knowledge - Daily
    [url]http://www.CommunityMX.com[/url]
    --


    Bryan Ashcraft 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