Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome - $body.length == 0 when loading a link #24

Open
theonlynexus opened this issue Mar 8, 2012 · 2 comments
Open

Chrome - $body.length == 0 when loading a link #24

theonlynexus opened this issue Mar 8, 2012 · 2 comments

Comments

@theonlynexus
Copy link

The plugin works as expected when first loading the iframe.
When clicking on a link inside the iframe, though, the body selector returns an empty array.

@house9
Copy link
Owner

house9 commented Mar 8, 2012

my guess is that the link goes to a document with no body tag?

--- this was previously reported, but I have not integrated this checking
var newHeight=0;
if ($body.length>0) {
newHeight = $body[0].scrollHeight + options.heightOffset;
}

@theonlynexus
Copy link
Author

No, it's actually a forum system and I double checked. The linked page
is html valid.

EDIT: You can check any of the links of the forum section at http://www.goodgameslive.com

The iframe will eventually get replaced by proper integration, but it will take time and I am stuck with it for now. The plugin just doesn't work as expected.

I tried to do a little debugging myself, but couldn't come to a reasonable conclusion.

On Fri 09 Mar 2012 12:28:37 AM KST, Jesse House wrote:

my guess is that the link goes to a document with no body tag?

--- this was previously reported, but I have not integrated this checking
var newHeight=0;
if ($body.length>0) {
newHeight = $body[0].scrollHeight + options.heightOffset;
}


Reply to this email directly or view it on GitHub:
#24 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants