[Javascript] Re: Getting frame height and width

Peter Brunone peter at brunone.com
Thu Jun 14 16:07:05 CDT 2001


    Right; I thought they only applied to the window, since every other
DHTML object I've ever heard of uses the style.height and style.width
properties.  Interesting...

----- Original Message -----
From: "Rodney Myers" <rodney at aflyingstart.net>
To: <javascript at LaTech.edu>
Sent: Thursday, June 14, 2001 3:40 PM
Subject: Re: [Javascript] Re: Getting frame height and width


> clientHeight and clientWidth are style properties that may be applied to a
> textarea according to Danny Goodman, that was my point. Perhaps you were
> thinking of them also applying to the window object.
>
> Rodney
>
> Peter Brunone wrote:
>
> >     Correct; that was never in doubt.  The question was how height and
width
> > apply to a text area since, like text inputs, they tend to be measured
in
> > characters rather than in pixels.
> >
> > ----- Original Message -----
> > From: "Rodney Myers" <rodney at aflyingstart.net>
> >
> >
> > > clientHeight and clientWidth are assigned in pixels according to Danny
G
> > in
> > > DHTML-TDR (O'Reilly)
> > > R
> > >
> > > phumes1 at home.com wrote:
> > >
> > > > At 02:09 PM 6/14/01 -0500, you wrote:
> > > > >phumes,
> > > > >
> > > > >     clientHeight and clientWidth are the attributes you want...
> > although I'm
> > > > >not sure what the "other browser" uses.
> > > > >
> > > > >     Are you trying to assign a width or height attribute to a
> > textarea?
> > > >
> > > > Yes
> > > >
> > > > >I've never done this, but even if it works, I'd guess that the
textarea
> > is
> > > > >assuming the measurements are in characters rather than in pixels.
> > > >
> > > > Ah....that's not good.
> >
>
> --
> Shop at ssistant Add-ons and Developer Workshops
> http://www.aflyingstart.net/addons/
>
> Enquiries regarding Shop at ssistant Classic training :
> Call 01256 880770
>
> Rodney Myers
> Based in Oxford, England
> Technical Director, Shop at ssistant eCommerce Solutions
>
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>





More information about the Javascript mailing list