[Javascript] Re: Getting frame height and width

phumes1 at home.com phumes1 at home.com
Thu Jun 14 21:09:50 CDT 2001


I have in previous emails. I have attached a screen capture of my template. 
It is done with frames.
Notice the file being pulled in (Frame B). This window is done with a 
<TEXTAREA>...</TEXTAREA> tags.

The code for the textarea is as follows:

<textarea cols="70" rows="25" name="textvar" id="textvar" wrap="off">

What I want to do is using Javascript (or anything) to figure out the width 
and height of frame "B" and
pass those coordinates to the "cols" and "rows" of the <textarea> tag. So 
when the window is resized
by the user the textarea will also resize accordingly.

 From previous emails is it my understanding that the "cols" & "rows" of 
the textarea is "characters"
and *not* pixels?






  ------------------------------------
|            Top Nav                     |
  ------------------------------------
|               |                                |
|               |                                |
|               |                                |
|       A      |             B                |
|               |                                |
|               |                                |
|               |                                |
  ------------------------------------
|            Bot Nav                     |
  ------------------------------------



At 07:07 PM 6/14/2001 -0400, you wrote:

>  You still haven't given us an explanation of exactly what you are trying 
> to do and why.
>
>-----Original Message-----
>From: phumes1 at home.com
>To: javascript at LaTech.edu
>Sent: 6/14/2001 5:09 PM
>Subject: RE: [Javascript] Re: Getting frame height and width
>
>Doesn't work.
>
>At 03:40 PM 6/14/2001 -0400, you wrote:
>
> >If you don't want the line to 'break' why do you want 25 rows? Try
>using
> ><TEXTAREA> without any size attributes and put it inside a table with
> >width="100%"
> >
> >Bob Filipiak (Contractor)
> >MCP
> >
> >-----Original Message-----
> >From: phumes1 at home.com
>[<<mailto:phumes1 at home.com>mailto:phumes1 at home.com>mailto:phumes1 at home.com]
> >Sent: Thursday, June 14, 2001 3:12 PM
> >To: javascript at LaTech.edu
> >Subject: RE: [Javascript] Re: Getting frame height and width
> >
> >
> >wrap=virtual breaks the lines within the <TEXTAREA> which I don't want.
> >
> >At 02:59 PM 6/14/01 -0400, you wrote:
> >
> > >Try wrap="VIRTUAL"
> > >
> > >Bob Filipiak (Contractor)
> > >MCP
> >
> >_______________________________________________
> >Javascript mailing list
> >Javascript at LaTech.edu
> ><<http://www.LaTech.edu/mailman/listinfo/javascript>http://www.LaTech.edu 
> /mailman/listinfo/javascript>http://www.LaTech.ed
>u/mailman/listinfo/javascript
> >
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
><http://www.LaTech.edu/mailman/listinfo/javascript>http://www.LaTech.edu/mailman/listinfo/javascript 
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: template.gif
Type: image/gif
Size: 25034 bytes
Desc: not available
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010614/92593bc5/attachment.gif>


More information about the Javascript mailing list