473,379 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Dynamic Resize TextArea?

Can anyone recommend a way to dynamically resize a textarea? I
already have it inside a <div> for positioning on a page, but I would
like to have the textarea always fill the div so I can resize
according to the div as well.

Or any other option.

Thanks.
Jul 20 '05 #1
2 15459

"bdwise" <br************@hotmail.com> wrote in message
news:59**************************@posting.google.c om...
Can anyone recommend a way to dynamically resize a textarea? I
already have it inside a <div> for positioning on a page, but I would
like to have the textarea always fill the div so I can resize
according to the div as well.
Doesn't sound like such a great idea.

You can add rows and columns to a textarea with a little scripting

textarea_reference.rows=20;

Jeff

Or any other option.

Thanks.

Jul 20 '05 #2
Jeff Thies wrote:
"bdwise" <br************@hotmail.com> wrote in message
news:59**************************@posting.google.c om...
Can anyone recommend a way to dynamically resize a textarea? I
already have it inside a <div> for positioning on a page, but I would
like to have the textarea always fill the div so I can resize
according to the div as well.

Doesn't sound like such a great idea.

You can add rows and columns to a textarea with a little scripting

textarea_reference.rows=20;


What about using some CSS instead? Something like style="width: XX%"
will probably do what they want. At a guess they will need to use 100%
to do what you want to do. That would be 100% of the DIV right?
David
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Phil Powell | last post by:
The customer made a wild request: they want on their admin panel a textarea that will display an existing resume. This textarea, however, must have a dynamic width, one that "fills the screen...
1
by: Mark Roseman | last post by:
The following script is intended to grow the textarea when the user first gives it focus. This seems to work on most browsers, but does nothing on Safari on the Mac (the rows and columns are...
5
by: meyousikmann | last post by:
I am having a little trouble with dynamic memory allocation. I am trying to read a text file and put the contents into a dynamic array. I know I can use vectors to make this easier, but it has to...
1
by: petermichaux | last post by:
Hi, I have been experimenting with some textarea automatic resize scripts. Most that I have found count the number of characters in the textarea and divide by the number of columns. This works...
9
by: dli07 | last post by:
Hello, I'm trying to convert a piece of code that creates a dynamic vertical resizing bar in a table from internet explorer to firefox. It's based on a post from...
3
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi! This discussion may help other programmers get a better idea of how to save uploaded images through a website. Why? Well currently, I save 3 versions of every uploaded image on my own...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.