Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Bug Reports & Fixes:
Calculating Length of Text in HTMLArea

New User

Feb 14, 2005, 11:25 PM

Views: 18725
Calculating Length of Text in HTMLArea

Hi All ,

I am using HTML Area in one of the ASP form . The text (comments) which we entered in HTMLArea need to save in database with some max length validation like the comments can be of maximum 1000 characters long. I code it like

if len(document.frmcomment.txaASCom.value) > 1000 then
msgbox "Entered comments length is more than 1000 characters"
exit sub
end if

but document.frmcomment.txaASCom.value takes the HTML tags also like Bold etc at the time of saving .

Please suggest me the method which will tell me the length of the Text only which user entered (without formatting HTML tags ).

The solution is required urgently.Pls help me in this regard.

Thanks in advance.