Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text boxes and Javascripts and the < br > tag

Status
Not open for further replies.

peter11

Instructor
Joined
Mar 16, 2001
Messages
334
Location
US
Are there any javascripts for Text Boxes that:
Will create a <br> tag when a user is typing in a text box and hits the enter key.

If there are not javascripts is there anything else that does this?
 
See if this helps:
thread232-18317 DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
All this info is great. But here is another text area question:
I want users to be able to enter number signs, single quotemarks, double quotemarks and ampersands.

I think I understand what the post is saying but do I have to create a <cfset post = replace...> for every possible HTML tag and every keyboard entry except for letters?

Is there a good book out there on this stuff.
 
Also, Which page does the CFSET Tag get placed on?
The form page OR
the insert page?
 
Peter,

You probably want the cfset on the insert page. Also you may want to look at regular expressions to try and reduce the amount of work for replacing special characters.

Hope this at least helps with a direction.

Crystal
crystalized_s@yahoo.com

--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top