aspdotnetguy
07-22-2002, 02:18 PM
Hello,
I am looking for a way to gracefully limit the amount that can be typed in a contentEditable DIV that I am using for text editor, I tried a few things
1: Setting ContentEditable to false when the user gets to XXX Chars but this is not graceful as they can not do anything now
2: Doing a pop up when they get to XXX chars but this is ugly as every time they hit a key owhen > XXX Chars they are going to get a pop-up
3: Waiting tell they try and submit and then telling them this is ugly as it seems a little late
What I am wondering is if there is a way to get it to act like a "textbox" where the users just cant type anymore? It is for IE 6.0 only as it for an Intranet.
Any help would be appreciated, thanks in advance,
Lyndon
I am looking for a way to gracefully limit the amount that can be typed in a contentEditable DIV that I am using for text editor, I tried a few things
1: Setting ContentEditable to false when the user gets to XXX Chars but this is not graceful as they can not do anything now
2: Doing a pop up when they get to XXX chars but this is ugly as every time they hit a key owhen > XXX Chars they are going to get a pop-up
3: Waiting tell they try and submit and then telling them this is ugly as it seems a little late
What I am wondering is if there is a way to get it to act like a "textbox" where the users just cant type anymore? It is for IE 6.0 only as it for an Intranet.
Any help would be appreciated, thanks in advance,
Lyndon