473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

height of a page

I know what you're thinking: window.innerHeight. Or clientHeight or
something like that. But my dilemma is much worse.

I need to know the height of the *page,* not the viewport. So if I've
got a page that is like twice or three times the height of the viewport,
does anyone know of any way to calculate that using JS?

It's a nutty idea I suppose, but here's the backstory: I have a client
who has a site whose content is being generated by some crappy database
software he is pretty much married to. The site looks like the Web era
1994, and he wants to give it a facelift, but get this -- he doesn't
want to change the css stylesheet that the database company is supplying
him with, because everytime they issue an update to their software,
there's a new stylesheet, and he doesn't want to have to integrate their
changes into whatever stylesheet he's using. Whatever.

So I mulled this over for a while and suggested that we put the db crap
into an iframe and then surround it with a nice, well-designed margin
that matches that of the larger institution. Far from perfect, but I
thought it was a pretty good idea. Unfortunately he says the iframe
can't have a scrollbar -- it has to fit all the content of the page.

So I made the iframe really big, and his response: oh, but it has all
this ugly whitespace at the bottom.

Long story short (too late), I have to figure a way to adjust the height
of the iframe on the fly. I've got no idea if this is humanly possible.

Any clever ideas?

mt
Oct 28 '05 #1
2 1149
scrollHeight?

Oct 28 '05 #2
In article <11**********************@g47g2000cwa.googlegroups .com>,
re********@gmail.com wrote:
scrollHeight?


Well I'll be darned. Thanks.

mt
Oct 28 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul | last post by:
Hi, I'm wondering if someone out there can help me overcome this quandary. I need to be able to calculate the height of the current page. I need to calculate the height of the page in pixels after...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
22
by: Les Juby | last post by:
I am trying to adjust the window/table size of a website (www.worklaw.co.za) which has made use of DIV tags with its settings embedded in an CSS file. The client wants its width and height to...
7
by: simon | last post by:
I have simple html(aspx) page, but vertical height won't work. Even if i had set the height of a table=100%, the table is not 100% height. I spend a lot of time(my real page is more...
0
by: rocketmonkeys | last post by:
The below mangled garbage is a fixed text illustration. I'll try to describe the problem. This is a general web layout problem I've had for a while, not confined to this specific case. I would...
7
by: Arthur Dent | last post by:
I am completely baffled... i cannot for the life of me get the HEIGHT style to work on a table in the new 2005-supported XHTML. I put a HEIGHT: 100% on my table so that my footer row will also show...
1
by: Wotney | last post by:
Hoping someone out there can help... I have an UpdatePanel that uses Atlas/Ajax to update it's contents without having to postback the entire page. (pnlUpdate) Within pnlUpdate I have a normal...
1
by: Mike Collins | last post by:
I am trying to create some pages and have them take 100% of the window, but I cannot get 100% to work. If I set the height of my div, the page displays a scroll bar and it looks like I set the...
19
by: Rabel | last post by:
I have a page that is using tables (please no comments about this - I understand it should be css but firefox created this template) I have a menu down the left side and the bottom is supposed to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.