KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do I resize an iframe from another domain? Past few days I have been trying to integrate an iframe into a site. This is a short term solution while the other side develops and API(could take months...) And because this is as short term solution we done want to use easyXDM- I have access to the other domain but its difficult enough asking them to add p3p header as it is..... 3 iframes The closest solution I found was the 3 iframes- but it goes mental of chrome and safari so I cannot use that. open in chrome http://css-tricks.com/examples/iFrameResize/crossdomain.php#frameId=frame-one&height=1179 Measure the scrollbars I found a another post on how to use the scrollheight to try and resize the form.. in theory it works well but I could not apply it properly using the iframes scroll height.. document.body.scrollHeight That obvoisly uses the bodies height (cannot access these properties 100% is based on the clients display canvaz and not the x-domains document height) I tried using jQuery to get the iframes height $('#frameId').Height() $('#frameId').clientHeight $('#frameId').scrollHeight return values different in chrome and ie - or just don't make sense at all. The problem is that everything inside the frame is denied- even the scrollbar... Computed Styles But if I inspect and element in chrome of the iframe it badly shows me the documents dimensions inside the iframe (using jQuery x-domain to get iframe.heigh - access denied) There is nothing in the computed CSS Now how does chrome calculate that? (edit- browser re-renders the page using its build in rendering engi
Tags (comma-separated)
Save Edits
Cancel