Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Heights??

Status
Not open for further replies.

sleuth

Programmer
Jan 12, 2001
134
US

Hello,

I have a cgi that allows people to create bulks of text, and I'm trying to output this text into a table for reading by a javascript.

I have the script build a page with the text in the table, then all I want is the javascript to report back how tall the table is after the text expands it.

I need to find out how many pixles from the top the very last line of text is, I've tried div tags, images, and the table itself but nothing seems to calculate.

Isn't there any way I can do this?? What about some kind of way to see where the scroll bar ends??? I've heard of ScrollHeight to determine how many pixles a page's bottom is from the top but how do I use it?

Thank You Very Much,

Tony
 

Ok, I figured it out!! Whoo Hoo,

It was really simple actually,

document.body.ScrollHeight

I finally stumbled upon it at MSDN, Dhtml center.

Thanks,

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top