davidjbradshaw / iframe-resizer

Keep iFrames sized to their content.

Home Page:https://iframe-resizer.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error:Cannot call method 'extend' of undefined

SFPink opened this issue · comments

Hello,

I've been searching for something like this for a while.

Have just implemented it and am throw this error in the console:

Cannot call method 'extend' of undefined

Using asp.net, jQuery 1.9.1..

I think my iFrame cant be found, I'll update this shortly

Just spotted that it depends on $ being defined globally in one place. Just added a test for this.

Fixed in version 2.2.3, give it a go and let me know if it works.

Okay, that seems to have done the trick. Just need to work out the initial loading height and the jobs a good one.

Try setting it to zero, that way the user just sees the content when it's loading and not the iFrame.

My issue was asp.net, when a postback occurred it broke the events therefore nothing updated. So I have to rebind the JS after each postback. Works very well now I've worked that out.

Good job, resizing the iFrame dynamically has been the bane of my life recently.

Hello,

I have an asp.net page inside the iframe, and as you said, it breaks all events on postback. So after postback resizing doesn't work. How can I rebind all events after postback?

Thank you.