469,306 Members | 1,903 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Multi Line Text Box Horizontal Scroll Bar Behavior

Hello,

I know this is not directly related to javascript, but I am not awayre
of a good group for handling web control questions.
I have been trying to get a textbox to work now for over a week, and
am starting to think there is not answer. I have a web application
that populates an htmlinputtextarea. The reason I chose it was
because it could display multiple lines. However, if the report gets
too wide for the textbox, the text starts to wrap. I have tried
override and white-space for CSS class, but the best I can get is one
long line (white-space: nowrap). For the setValue, I use \r\n for my
end of line. Example: txtBox.setValue("This is one line\r\nThis is
line two.");
Is there a better textbox than the htmlinputtextarea to display
multiple lines of text with a vertical and horizontal scrollbar? If
not anybody know what I am doing wrong?
Thanks for any help
Ryan
Jun 27 '08 #1
1 2432
You should wrap report in DIV element and specify width, height
On Apr 16, 12:40*am, RFlem...@nationalsteel.com wrote:
Hello,

I know this is not directly related to javascript, but I am not awayre
of a good group for handling web control questions.
I have been trying to get a textbox to work now for over a week, and
am starting to think there is not answer. *I have a web application
that populates an htmlinputtextarea. *The reason I chose it was
because it could display multiple lines. *However, if the report gets
too wide for the textbox, the text starts to wrap. *I have tried
override and white-space for CSS class, but the best I can get is one
long line (white-space: nowrap). *For the setValue, I use \r\n for my
end of line. Example: *txtBox.setValue("This is one line\r\nThis is
line two.");

Is there a better textbox than the htmlinputtextarea to display
multiple lines of text with a vertical and horizontal scrollbar? *If
not anybody know what I am doing wrong?

Thanks for any help

Ryan
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Dave | last post: by
4 posts views Thread by justdummy | last post: by
2 posts views Thread by Boaz Ben-Porat | last post: by
2 posts views Thread by John Carnahan | last post: by
8 posts views Thread by cj | last post: by
4 posts views Thread by MartinRinehart | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.