Professional Web Applications Themes

copy and paste form RTF doent into field in asp form cause it to bypass field length and javascript validation - how to overcome? - ASP Database

I have a web form with several fields. If I copy & paste from a RTF doent into a field, the javascript validation and field length are bypassed and cause the form to fail. Any ideas?...

  1. #1

    Default copy and paste form RTF doent 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
    doent into a field, the javascript validation and field length are
    bypassed and cause the form to fail.

    Any ideas?


    NotGiven Guest

  2. #2

    Default Re: copy and paste form RTF doent into field in asp form cause it to bypass field length and javascript validation - how to overcome?

    In article <m1toc.2789$yF6.883bignews5.bellsouth.net>,
    [email]nonamenonegiven.net[/email] enlightened us with...
    > I have a web form with several fields. If I copy & paste from a RTF
    > doent into a field, the javascript validation and field length are
    > bypassed and cause the form to fail.
    >
    > Any ideas?
    Code better?

    (I have no clue. I've never heard of such a thing. Post code so we can
    see what's going on along with a working example if possible.)

    --
    --
    ~kaeli~
    A midget fortune teller who escapes from prison is a small
    medium at large.
    [url]http://www.ipwebdesign.net/wildAtHeart[/url]
    [url]http://www.ipwebdesign.net/kaelisSpace[/url]

    kaeli Guest

  3. #3

    Default Re: copy and paste form RTF doent into field in asp form cause it to bypass field length and javascript validation - how to overcome?

    Is this really an ASP question that involves databases???

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]




    "NotGiven" <nonamenonegiven.net> wrote in message
    news:m1toc.2789$yF6.883bignews5.bellsouth.net...
    > I have a web form with several fields. If I copy & paste from a RTF
    > doent into a field, the javascript validation and field length are
    > bypassed and cause the form to fail.
    >
    > Any ideas?
    >
    >

    Aaron Bertrand - MVP Guest

  4. #4

    Default Re: copy and paste form RTF doent into field in asp form causeit to bypass field length and javascript validation - how to overcome?

    NotGiven wrote:
    > I have a web form with several fields. If I copy & paste from a RTF
    > doent into a field, the javascript validation and field length are
    > bypassed and cause the form to fail.
    >
    > Any ideas?
    >
    >
    Possibly you should HTMLEncode the field value(s)?

    i.e., when a field is first input:
    strField = Server.HTMLEncode( Request.Form( RTFfield ) )

    Or you could HTMLEncode it immediately prior to output, e.g.,
    <input type="text" name="myname"
    value= "<% =Server.HTMLEncode( rs("myField1") ) %>"
    or in a table,
    <td><% =Server.HTMLEncode( rs("MyField2") ) %></td>

    Reason I raise this is that, if you are not using HTMLEncode, then
    perhaps control characters in the RTF text are interfering with the HTML
    display.

    Good Luck,
    Michael D. Kersey
    Michael D. Kersey Guest

Similar Threads

  1. form field validation broken
    By schmeckendeugler in forum Coldfusion Server Administration
    Replies: 1
    Last Post: August 25th, 09:12 PM
  2. Defined text field in form -> subject field in e-mail
    By olaka in forum Dreamweaver AppDev
    Replies: 0
    Last Post: March 14th, 02:20 PM
  3. Form field validation states in error
    By Bigbubbaj in forum Coldfusion Flash Integration
    Replies: 2
    Last Post: March 7th, 06:09 PM
  4. Javascript taking field data to form filename
    By Christy_Jackson@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 0
    Last Post: April 15th, 04:23 PM
  5. Replies: 0
    Last Post: January 9th, 03:23 PM

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