Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in JavaScript programming only
Search
Advanced Search
Forum
Groups
Today’s Posts
Calendar
Forum
Client side development
JavaScript programming
Announcement
Collapse
No announcement yet.
textarea CR
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
tamienne
New to the CF scene
Join Date:
Jun 2002
Posts:
137
Share
Tweet
#1
textarea CR
Jul 8, 2002, 11:19 AM
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
Guest
Join Date:
Jun 2002
Posts:
225
Share
Tweet
#2
Jul 8, 2002, 12:12 PM
Using a <input name="" type="text" /> ?
Comment
Post
Cancel
tamienne
New to the CF scene
Join Date:
Jun 2002
Posts:
137
Share
Tweet
#3
Jul 8, 2002, 12:16 PM
it's going to be really big and i want the text wrap.
Thanks for the suggestion though.
Comment
Post
Cancel
A1ien51
New to the CF scene
Join Date:
Jun 2002
Posts:
2733
Share
Tweet
#4
Jul 8, 2002, 01:00 PM
isn't there something with
wrap="off"
wrap="virtual"
wrap="soft"
wrap="physical"
Tech Author [Ajax In Action, JavaScript
: Visual Blueprint]
Comment
Post
Cancel
tamienne
New to the CF scene
Join Date:
Jun 2002
Posts:
137
Share
Tweet
#5
Jul 8, 2002, 01:28 PM
yes. but i don't want the person to actually press the "enter" key which would force a carriage return.
Last edited by
tamienne
;
Jul 8, 2002, 01:57 PM
.
Comment
Post
Cancel
Bosko
Guest
Join Date:
Jun 2002
Posts:
225
Share
Tweet
#6
Jul 8, 2002, 01:44 PM
Can you proces the text using a server side script and delete them?
Comment
Post
Cancel
tamienne
New to the CF scene
Join Date:
Jun 2002
Posts:
137
Share
Tweet
#7
Jul 8, 2002, 01:57 PM
unfortunately, i have to do it client-side.
Comment
Post
Cancel
adios
New to the CF scene
Join Date:
Jun 2002
Posts:
1404
Share
Tweet
#8
Jul 8, 2002, 03: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>
Comment
Post
Cancel
tamienne
New to the CF scene
Join Date:
Jun 2002
Posts:
137
Share
Tweet
#9
Jul 8, 2002, 03:49 PM
Thanks adios!
That's exactly what I'm looking for.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment