Glen Lipka -- a.k.a Mr. Demo!

Nice work, Glen.

I have a demo page for all of the Dimensions methods that I used for the (soon-to-be-released) jQuery Reference Guide:
        http://book.learningjquery.com/3810_10_code/dimplugin.html

Click on a heading to see the corresponding trigger button and log box. It's using the updated Dimensions code that fixes the Firefox document width issue (thanks for that fix, Brandon!).

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jul 13, 2007, at 12:42 PM, Glen Lipka wrote:

I whipped up a demo.
http://www.commadot.com/jquery/dimensions/windowsize.htm

Shows the different options.  Click the links at the top.

Glen

On 7/13/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
Sounds like you're actually wanting the width of the window, not of the page.

From: jquery-en@googlegroups.com [mailto:jquery- [EMAIL PROTECTED] On Behalf Of Geoffrey Knutzen
Sent: Friday, July 13, 2007 11:13 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] How to get the entire width of a page

Seems simple. How do I calculate the entire width of a page, even when there are scroll bars?


I am using the dimensions plug in


($("html").innerWidth();

$("html").width());

($("body").innerWidth();

$("body").width());

($(document).innerWidth();

$(document).width());


All seem to return the same number, at least in FF.


But if there are horizontal scroll bars, they only return the width of the visible area, not the entire width of the page.

How do I get the entire width of a page?


Thanks




Reply via email to