By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,045 Members | 1,384 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,045 IT Pros & Developers. It's quick & easy.

Multi Line Text Box Horizontal Scroll Bar Behavior

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.