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

Issue when used with MooTools #253

Closed
mrweix opened this issue Sep 15, 2015 · 5 comments
Closed

Issue when used with MooTools #253

mrweix opened this issue Sep 15, 2015 · 5 comments

Comments

@mrweix
Copy link

mrweix commented Sep 15, 2015

when using the latest version 3.2.0 of your plugin I get the following error in the console of safari and Chrome.

Uncaught TypeError: Cannot read property 'tagName' of undefined

a @ iframeResizer.js:855
(anonymous function) @ mootools-core.js:88
(anonymous function) @ iframeResizer.js:876

Before I used version 2.8.6 so I reverted to that version for now, because there I don't get any mistakes....

@davidjbradshaw
Copy link
Owner

Can you please add a link and I'll have a look.

@mrweix
Copy link
Author

mrweix commented Sep 16, 2015

Since I have to use the site that works (so I use iframeresizer 2.8.6) I unfortunately don't have a link to the site. The thing is I also get other Error messages on that site and on another environment 3.2.0 works. So its probably some sort of problem where 2 plugins interfere....

@davidjbradshaw
Copy link
Owner

Could you add your call to the script here. Just wondering what settings your using.

@mrweix
Copy link
Author

mrweix commented Sep 18, 2015

iFrameResize({log : true,enablePublicMethods : true,enableInPageLinks : true});

@davidjbradshaw
Copy link
Owner

Are you using an old version of mootools? To me it looks like the bug is with that. I expect you can work around it by passing the iframe directly, rather than searching for it.

 var myIFrame = document.getElementById('myIFrame');
 iFrameResize({log : true,inPageLinks : true},myIFrame);

Note the options in v3 have changed a little.

@davidjbradshaw davidjbradshaw changed the title problem with latest update Issue when used with MooTools Sep 21, 2015
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