Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 13th, 2008, 12:34 AM
Newbie
 
Join Date: Aug 2008
Posts: 2
Default rows of Textarea

Instead of having a constant value for rows like rows="6" in the textarea tag, is there a way to have a dynamic value for rows based on the number of rows of the content. The content varies.
Reply
  #2  
Old August 13th, 2008, 12:48 AM
Newbie
 
Join Date: Aug 2008
Posts: 2
Default

Quote:
Originally Posted by keeru
Instead of having a constant value for rows like rows="6" in the textarea tag, is there a way to have a dynamic value for rows based on the number of rows of the content. The content varies.
IE verion 6

This is the code
<TEXTAREA cols="160" rows="10" style="BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none;" readonly >{$this-Value text}</TEXTAREA>

With the above code the text which is there in $this-Value is displayed with 10 rows and 120 columns with no borders around but with scrollbars when the content has 18 rows.
I should be able to display the entire content whatever the number of rows the content spans through and with no scrollbars. The content is dynamic one-- it is not always the same.Hence the number of rows vary. How can I get the number of rows and how to display the entire content.
Reply
  #3  
Old August 13th, 2008, 01:57 AM
eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 837
Default

HTML/CSS by itself will not be able to do this. It will require the use of a programming language or possibly AJAX or JavaScript.

--Kevin
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles