473,503 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A question about textarea

the code is like following:
<textarea cols=40 rows=10 name=n style="overflow:auto"this is a test
about textarea and see how it works..... </textarea>
can i assign a variable to rows based on my contents length? or
javascript has any internal attribute i can use?
TIA.
st

Nov 11 '07 #1
2 2071
VK
On Nov 11, 5:50 pm, aaabb...@hotmail.com wrote:
the code is like following:
<textarea cols=40 rows=10 name=n style="overflow:auto"this is a test
about textarea and see how it works..... </textarea>
can i assign a variable to rows based on my contents length? or
javascript has any internal attribute i can use?
Do you want to make it once on page loading or at any time after page
loaded?

Nov 11 '07 #2
On 11 11 , 6 58 , VK <schools_r...@yahoo.comwrote:
On Nov 11, 5:50 pm, aaabb...@hotmail.com wrote:
the code is like following:
<textarea cols=40 rows=10 name=n style="overflow:auto"this is a test
about textarea and see how it works..... </textarea>
can i assign a variable to rows based on my contents length? or
javascript has any internal attribute i can use?

Do you want to make it once on page loading or at any time after page
loaded?
It is html builder to create a html file. The reason is my content
change often. sometimes may be just
one line or two, if set row=10, it wast more space.
what I basic idea is use string length to check my contents (may use a
function to check it), then based on that assign a var. to rows. Is
it possible? also if the content is longer that 10 rows, use
scrollbar.

Nov 11 '07 #3

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

Similar topics

1
3543
by: Volt | last post by:
is there any way to select and mark part of text in textarea by regular expression? i need to select the first string in textarea whitch is like xxxxx,xxx where x is any character
5
12117
by: Jesper Rønn-Jensen | last post by:
I have a textarea that must be limited to 70 characters. No big deal -- at least so I thought. * Textarea must not exceed 70 characters * Exceeding content must be cut off * Must work on input by...
4
4224
by: TJS | last post by:
can the rows and columns of a textarea element with an id be changed on the fly ? if so is there an example ?
6
5962
by: wperry1 | last post by:
I am writing a small database utility to catalog all of my favorite ASM/JS/VBS... functions and scripts on an asp page. Everything is going smoothly except for one thing that I can't quite seem to...
4
7739
by: Keith Bentrup | last post by:
Hi all, I wrote a simple search function to find text in a textarea where not all the text is visible (ie. the text box displays 10 lines but there may be more than 1000 lines to search). I can...
3
4911
by: MikeK | last post by:
Ok, I've been noodling with this for several days now and I'm starting to go crazy. Does Apple's Safari browser support drag events on Textarea elements? The few specs and docs I've found seem to...
5
4756
by: a113n | last post by:
I have the following XSL code to handle textareas: <!-- Match TEXTAREA --> <xsl:template name="TEXTAREA" match="TEXTAREA"> <TEXTAREA ROWS="{@ROWS}" COLS="{@COLS}" NAME="{@NAME}"> <xsl:if...
2
2463
by: Slick50 | last post by:
I am about ready to finally give up on CSS and fall back to tables. Positioning is becoming too frustrating for the novice with CSS alone... I have a simple form. Conceptually I divide up each...
3
6719
by: =?GB2312?B?1qP2zrrA?= | last post by:
hi all, i need to covert the utf8 character to gbk,is that possible?Any idea will be appreciate.
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.