NotGiven said:
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 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