tamienne
07-08-2002, 04:19 PM
I have a textarea which i don't want to have any carriage returns in. What is the easiest way to prevent the CR?
Thanks.
Thanks.
|
||||
textarea CRtamienne 07-08-2002, 04:19 PM I have a textarea which i don't want to have any carriage returns in. What is the easiest way to prevent the CR? Thanks. Bosko 07-08-2002, 05:12 PM Using a <input name="" type="text" /> ? tamienne 07-08-2002, 05:16 PM it's going to be really big and i want the text wrap. Thanks for the suggestion though. A1ien51 07-08-2002, 06:00 PM isn't there something with wrap="off" wrap="virtual" wrap="soft" wrap="physical" tamienne 07-08-2002, 06:28 PM yes. but i don't want the person to actually press the "enter" key which would force a carriage return. Bosko 07-08-2002, 06:44 PM Can you proces the text using a server side script and delete them? tamienne 07-08-2002, 06:57 PM unfortunately, i have to do it client-side. adios 07-08-2002, 08:46 PM <html> <head> <title>untitled</title> <script type="text/javascript" language="JavaScript"> function noEnter(e) { var kC = (e.keyCode) ? e.keyCode : e.which ? e.which : null; if (kC) return kC != 13; else return true; } </script> </head> <body> <form> <textarea rows="6" cols="32" wrap="virtual" onkeypress="return noEnter(event)"> </textarea> </form> </body> </html> tamienne 07-08-2002, 08:49 PM Thanks adios! That's exactly what I'm looking for. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum