imjp
imjp

Reputation: 6695

Set iFrame height based on its content

I've tried out several solutions and jQuery plugins to solve this issue but for some reason they're not working for my website.

Perhaps someone could take a look what is preventing my iFrame height from being set dynamically: http://thestrand.spin-demo.com/booking

I currently have an autoHeight jquery plugin there that gets the height of the iFrame with the class "autoHeight" and sets the height of the iFrame based on the total height of the content.

For some reason it's only setting the height to 169px.

Upvotes: 0

Views: 480

Answers (1)

Sam Greenhalgh
Sam Greenhalgh

Reputation: 6136

You wont be able to do this for an iframe on another domain because of the same origin policy of the browser.

Upvotes: 3

Related Questions