You're right. I'm an idiot.
I was thinking of the width/height methods from the Dimensions plugin.
Isn't it part of the jQuery core now? I thought it would behave the
same as it used to. Sorry for dragging this out.
I should have known better, because I recently wrote a function using $
(window
Definitely they are not the same.
the window height is the viewport height, the document height is the
body height, the contents. Any website with jQuery (try jquery.com)
should show you the difference.
They will only be the same if the page's content is smaller than the
window size.
- ricardo
1.2.6
http://support.zetaboards.com/index/
On Oct 21, 7:06 pm, tallvanilla <[EMAIL PROTECTED]> wrote:
> @ryura:
> What version of jQuery are you using? Anything after 1.2 (possibly
> earlier) should return identical results for $(window).height() and $
> (document).height(). If not, can I see you
@ryura:
What version of jQuery are you using? Anything after 1.2 (possibly
earlier) should return identical results for $(window).height() and $
(document).height(). If not, can I see your test page?
JR
On Oct 21, 3:55 pm, Ryura <[EMAIL PROTECTED]> wrote:
> Well obviously I did try it and I di
Well obviously I did try it and I did get different results which lead
me to my conclusion.
Using FF3, I got ~400 for $(window).height and ~3000 for $
(document).height on a test page where the document's height was ~3000
On Oct 21, 6:48 pm, tallvanilla <[EMAIL PROTECTED]> wrote:
> No, they're
No, they're exactly the same. Try it and let me know if you get
different results.
JR
On Oct 21, 11:25 am, Ryura <[EMAIL PROTECTED]> wrote:
> Actually, it seems that the document's height is the entire page's
> height, while the window height is only the viewing height(ie: what
> you see at th
Actually, it seems that the document's height is the entire page's
height, while the window height is only the viewing height(ie: what
you see at that given time).
On Oct 21, 1:00 pm, tallvanilla <[EMAIL PROTECTED]> wrote:
> Good question. No difference. Both should give you the exact same
> resu
Good question. No difference. Both should give you the exact same
result every time.
JR
On Oct 21, 1:38 am, jey jey <[EMAIL PROTECTED]> wrote:
> what is difference between $(document).height() and $
> (window).height() ?
8 matches
Mail list logo