I am using T Lavedas' WSH Scripts for msgbox function. I want to dymanically
set the height of the "mgsbox" based upon the contents.

Can anyone tell me how?

Thanks,
dra

RE: Height of window by DRARetired

DRARetired
Tue Mar 15 16:03:03 CST 2005

I discovered a way myself. I added a blank <p id=bttm> to the end if my
document. Then I used
.document.all.bttm.offsettop + .document.all.b0.clientheight.

It worked. Ain't I smart?!

dra




"DRARetired" wrote:

> I am using T Lavedas' WSH Scripts for msgbox function. I want to dymanically
> set the height of the "mgsbox" based upon the contents.
>
> Can anyone tell me how?
>
> Thanks,
> dra

Re: Height of window by McKirahan

McKirahan
Tue Mar 15 16:28:03 CST 2005

"DRARetired" <DRARetired@discussions.microsoft.com> wrote in message
news:C80B15F5-1EE3-4358-8308-0FC50833DDBA@microsoft.com...
> I discovered a way myself. I added a blank <p id=bttm> to the end if my
> document. Then I used
> .document.all.bttm.offsettop + .document.all.b0.clientheight.
>
> It worked. Ain't I smart?!
>
> dra

What browser+version are you using.

I think that "document.all" my be limited or deprecated.



Re: Height of window by DRARetired

DRARetired
Tue Mar 15 16:53:04 CST 2005

"limited or deprecated"?

IE is latest v6, vbscript is 5.6.

dra

"McKirahan" wrote:

> "DRARetired" <DRARetired@discussions.microsoft.com> wrote in message
> news:C80B15F5-1EE3-4358-8308-0FC50833DDBA@microsoft.com...
> > I discovered a way myself. I added a blank <p id=bttm> to the end if my
> > document. Then I used
> > .document.all.bttm.offsettop + .document.all.b0.clientheight.
> >
> > It worked. Ain't I smart?!
> >
> > dra
>
> What browser+version are you using.
>
> I think that "document.all" my be limited or deprecated.
>
>
>

Re: Height of window by McKirahan

McKirahan
Tue Mar 15 17:17:36 CST 2005

"DRARetired" <DRARetired@discussions.microsoft.com> wrote in message
news:364FAFF9-C9DB-4EA6-A989-D4B5F9C271E5@microsoft.com...
> "limited or deprecated"?
>
> IE is latest v6, vbscript is 5.6.
>
> dra
>
> "McKirahan" wrote:
>
> > "DRARetired" <DRARetired@discussions.microsoft.com> wrote in message
> > news:C80B15F5-1EE3-4358-8308-0FC50833DDBA@microsoft.com...
> > > I discovered a way myself. I added a blank <p id=bttm> to the end if
my
> > > document. Then I used
> > > .document.all.bttm.offsettop + .document.all.b0.clientheight.
> > >
> > > It worked. Ain't I smart?!
> > >
> > > dra
> >
> > What browser+version are you using.
> >
> > I think that "document.all" my be limited or deprecated.

the document.all legacy
http://www.metalusions.com/backstage/articles/8/

javascript - "document.all"
http://www.codeguru.com/forum/archive/index.php/t-204439.html

NN4 refers to objects with document.layers['layerID']
IE4 refers to objects with document.all.objectID
DOM compliant browsers (IE5+,NS6+/Moz, Opera5+) refers to objects with
document.getElementById('objectID')



Re: Height of window by DRARetired

DRARetired
Wed Mar 16 02:23:03 CST 2005

Just what I was really looking for!

Thanks,
dra

"McKirahan" wrote:

> "DRARetired" <DRARetired@discussions.microsoft.com> wrote in message
> news:364FAFF9-C9DB-4EA6-A989-D4B5F9C271E5@microsoft.com...
> > "limited or deprecated"?
> >
> > IE is latest v6, vbscript is 5.6.
> >
> > dra
> >
> > "McKirahan" wrote:
> >
> > > "DRARetired" <DRARetired@discussions.microsoft.com> wrote in message
> > > news:C80B15F5-1EE3-4358-8308-0FC50833DDBA@microsoft.com...
> > > > I discovered a way myself. I added a blank <p id=bttm> to the end if
> my
> > > > document. Then I used
> > > > .document.all.bttm.offsettop + .document.all.b0.clientheight.
> > > >
> > > > It worked. Ain't I smart?!
> > > >
> > > > dra
> > >
> > > What browser+version are you using.
> > >
> > > I think that "document.all" my be limited or deprecated.
>
> the document.all legacy
> http://www.metalusions.com/backstage/articles/8/
>
> javascript - "document.all"
> http://www.codeguru.com/forum/archive/index.php/t-204439.html
>
> NN4 refers to objects with document.layers['layerID']
> IE4 refers to objects with document.all.objectID
> DOM compliant browsers (IE5+,NS6+/Moz, Opera5+) refers to objects with
> document.getElementById('objectID')
>
>
>