SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard Goof's Avatar
    Join Date
    Feb 2001
    Location
    Pittsburgh, PA
    Posts
    1,154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Finding the Height of the Rendered Document (w/ JQuery?)

    Hello,

    I'm trying to find the pixel height of the entire rendered document (NOT just the viewport). Any ideas how I can do that?

    I'm already using JQuery on other parts of the site, so if some functionality of JQuery makes it easier, that would be fine.

    Thanks,
    -Nate
    Nathan Rutman
    A slightly offbeat creative.

  2. #2
    SitePoint Guru whisher's Avatar
    Join Date
    May 2006
    Location
    Kakiland
    Posts
    732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Wizard Goof's Avatar
    Join Date
    Feb 2001
    Location
    Pittsburgh, PA
    Posts
    1,154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't understand...that doesn't explain how to get the height of the document, just an element's offset.
    Nathan Rutman
    A slightly offbeat creative.

  4. #4
    SitePoint Guru whisher's Avatar
    Join Date
    May 2006
    Location
    Kakiland
    Posts
    732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Goof View Post
    I don't understand...that doesn't explain how to get the height of the document, just an element's offset.
    Sorry, I've misunderstood.
    Can you give an example on what your goal is ?

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 Thread(s)
    Here's a thread that seems to cover this problem quite nicely.
    http://codylindley.com/Webdev/295/ja...ht-with-scroll
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •