JavaScript - Is it possible to get height from div in separate page?

Posted by Kenny Bones on Stack Overflow See other posts from Stack Overflow or by Kenny Bones
Published on 2010-05-02T16:23:52Z Indexed on 2010/05/02 16:47 UTC
Read the original article Hit count: 171

Filed under:
|
|
|

Hi, I'm wondering, is it possible to collect the height of a specific div container from a separate page with JavaScript? I'm using jQuery btw and I'm in need of comparing heights of div containers.

Edit: To clarify a bit more, I load content from a specific div in a separate page using jQuery. This content is faded into a different container with dynamic height. But in the small fraction of time before the content arrives, it shrinks down to it's min-height.

What I've done so far is collecting the height of the container before and after the load. But it only works after I've loaded content once. Because I don't have the height before it's been loaded the first time.

© Stack Overflow or respective owner

Related posts about css

Related posts about JavaScript