Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Varying the size of a TEXTAREA
Message
From
23/12/2002 12:05:36
 
 
To
23/12/2002 11:58:16
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Internet
Category:
DHTML
Miscellaneous
Thread ID:
00735410
Message ID:
00735417
Views:
9
>I think I understand what you are saying, but, it's Monday and I need an extra jab for this to sink in. Could you please expand on this idea possibly with some sample code? I guess I'm stuck on determining how to translate a tables td width to the textareas cols.

This assumes you have an event on the page that will fire on resizing.

You would first need to assign an ID to your table container and to the textarea field.

Then, on resize, your javascript might do something like this:
document.getElementById("TextArea").style.width=
 document.getElementById("Table").clientWidth-8
This assumes that you have placed your textarea inside your table with a 4 pixels margin. Thus, this is why I am removing 8 pixels in order to have it centered in your table on resize.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform