Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: DHTML
Expertise: Beginner
Jun 22, 1999

Generate a DHTML Message From a Database

Question:

I am working with Microsoft DHTML and when I insert the content of a field in a DHTML document, I lose part of my message. For example, suppose I write:

Hello (insert first last name) 
How are you

I obtain:

 
Hello Frederic Smith 

However, I lose:

How are you

Answer:
This problem is actually a pretty easy one to solve. The text field () doesn't accept a carriage return as a valid character, and will automatically truncate any text that is assigned to it that has a carriage return to a single line. To get around it, use the
(Maximum characters: 1200). You have 1200 characters left.