McRonald
McRonald

Reputation: 1005

iframe resizing

I'm using the jQuery plugin: http://plugins.jquery.it/project/jquery-iframe-resizer

However it seems to be working only within the same domain...

Upvotes: 1

Views: 324

Answers (3)

David Bradshaw
David Bradshaw

Reputation: 13077

Try this library instead to get around the cross domain issue.

https://github.com/davidjbradshaw/iframe-resizer

Upvotes: 0

Sean Kinsey
Sean Kinsey

Reputation: 38046

First of all, your 'question' is not at all in the form of a question, and hence, there is really nothing to answer..

Secondly, if you want to get iframe resizing to work across domains, then take a look at easyXDM, you can find an example here.

Upvotes: 0

alex
alex

Reputation: 490233

That is because the iframe can't access its contents on other domains because of Same Origin Policy.

Note too the plugin page says...

ATTENTION : due to same origin policy this plugin won't work with iframes not coming from the same domain as the calling page

Upvotes: 2

Related Questions