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

$('iframe').iFrameResize() throws error with no options argument #265

Closed
ghost opened this issue Sep 29, 2015 · 3 comments
Closed

$('iframe').iFrameResize() throws error with no options argument #265

ghost opened this issue Sep 29, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 29, 2015

if no arguments, set options = {}

@davidjbradshaw
Copy link
Owner

What version are you using, that was fixed awhile back.

@sportsracer
Copy link

I'm also experiencing this with 3.2.0 and 3.3.3. The error I get is

Uncaught TypeError: Cannot read property 'id' of undefined

Code snippet to reproduce:

<script type="text/javascript" src="https://api.trustyou.com/static/3rdparty/iframe-resizer/js/iframeResizer.min.js"></script>
<iframe src="https://api.trustyou.com/hotels/dc9dacd7-f476-4cd4-9f82-4ccc83ed7f86/tops_flops.html?key=698b8681-bb2d-4ad2-817e-64e6641e4f3d&iframe_resizer=true" allowtransparency="true" frameborder="0" width="100%" ></iframe>
<script type="text/javascript">iFrameResize();</script>

@davidjbradshaw
Copy link
Owner

Thanks I'll take a look.

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