[jQuery] Re: what is difference between $(document).height() and $(window).height() ?

2008-10-21 Thread tallvanilla
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

[jQuery] Re: what is difference between $(document).height() and $(window).height() ?

2008-10-21 Thread ricardobeat
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

[jQuery] Re: what is difference between $(document).height() and $(window).height() ?

2008-10-21 Thread Ryura
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

[jQuery] Re: what is difference between $(document).height() and $(window).height() ?

2008-10-21 Thread tallvanilla
@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

[jQuery] Re: what is difference between $(document).height() and $(window).height() ?

2008-10-21 Thread Ryura
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

[jQuery] Re: what is difference between $(document).height() and $(window).height() ?

2008-10-21 Thread tallvanilla
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

[jQuery] Re: what is difference between $(document).height() and $(window).height() ?

2008-10-21 Thread Ryura
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

[jQuery] Re: what is difference between $(document).height() and $(window).height() ?

2008-10-21 Thread tallvanilla
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() ?