[Javascript] Re: Getting frame height and width

phumes1 at home.com phumes1 at home.com
Thu Jun 14 14:25:30 CDT 2001


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.




>----- Original Message -----
>From: <phumes1 at home.com>
>To: <javascript at LaTech.edu>
>Sent: Thursday, June 14, 2001 1:49 PM
>Subject: RE: [Javascript] Re: Getting frame height and width
>
>
> >
> >
> > This is what was returned in my frame.
> >
> > Are these coordinates the actual size of the frame? In this case frame "B"
> > (See diagram below).
> >
> > The reason I',m asking is because I have the following textarea tag in the
> > same frame with these coordinates
> > and it almost fills up the whole frame. By adding any of the below
> > widths/heights it blows it way out!
> >
> > <textarea cols="70" rows="25" name="textvar" id="textvar" wrap="off">
> >
> > I'm I missing something here?????
> >
> > self.screen.height: 1024
> > self.screen.width: 1280
> > self.screen.availHeight: 996
> > self.screen.availWidth: 1280
> > self.screenTop: 311
> > self.screenLeft: 449
> > self.screen.colorDepth: 16
> > document.body.clientHeight: 602
> > document.body.clientWidth: 742
> > document.body.scrollHeight: 60
> > document.body.scrollWidth: 726
> > document.body.offsetHeight: 602
> > document.body.offsetWidth: 742
> >
> >
> >
> >
> >
> > At 10:58 AM 6/14/01 -0700, you wrote:
> > >Try getting the values of:
> > >
> > >
> > >IE/NN
> > ><framename>.height
> > ><framename>.width
> > >
> > >or IE only
> > >document.all.<frameID>
> > >
> > >
> > >HTH,
> > >
> > >Josiah Gordon
> > >
> > >-----Original Message-----
> > >From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
> > >Behalf Of phumes1 at home.com
> > >Sent: Thursday, June 14, 2001 10:42 AM
> > >To: javascript at LaTech.edu
> > >Subject: [Javascript] Re: Getting frame height and width
> > >
> > >
> > >
> > >Hi,
> > >
> > >Does anyone know how to go about getting a frames height and width in
> > >pixels and then output those results to a page?
> > >
> > >I have a frameset like
> > >
> > >   ----------------------------
> > >|             |                       |
> > >|             |                       |
> > >|     A      |           B         |
> > >|             |                       |
> > >|             |                       |
> > >|             |                       |
> > >   ----------------------------
> > >
> > >I would like to find out the size of frame "B" based on the size of the
> > >users browser window.
> > >
> > >Please tell me this can be done!
> > >
> > >
> > >_______________________________________________
> > >Javascript mailing list
> > >Javascript at LaTech.edu
> > >http://www.LaTech.edu/mailman/listinfo/javascript
> > >
> > >
> > >---
> > >Incoming mail is certified Virus Free.
> > >Checked by AVG anti-virus system (http://www.grisoft.com).
> > >Version: 6.0.261 / Virus Database: 131 - Release Date: 6/6/2001
> > >
> > >---
> > >Outgoing mail is certified Virus Free.
> > >Checked by AVG anti-virus system (http://www.grisoft.com).
> > >Version: 6.0.261 / Virus Database: 131 - Release Date: 6/6/2001
> > >
> > >
> > >_______________________________________________
> > >Javascript mailing list
> > >Javascript at LaTech.edu
> > >http://www.LaTech.edu/mailman/listinfo/javascript
> >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > http://www.LaTech.edu/mailman/listinfo/javascript
> >
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>http://www.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list