Click here to Skip to main content
14,387,626 members
Rate this:
Please Sign up or sign in to vote.
See more:
My scenario is:

ABC.com has an iframe like
<div id="div1" height="1200px">
<iframe id="800px" id="iff1" src="xyz.com/test.aspx"></iframe>
</div>


where ABC.com is my client's site, in which he access my site "xyz.com" in an iframe.
I have tabbed content in my xyz.com/test.aspx

I need to
autosize the iframe from my page (in tabcontent.js)

I tried
parent.window.document.getElementById("msl2Iframe-wrapper").style.height..

it is working in my local, but not in remote (may be cross domain problem).

How can I solve this problem..Please help

Thanks
Posted
Updated 10-Jul-13 4:16am
v2
Comments
Samresh.ss 10-Jul-13 9:07am
   
You can refer here
http://stackoverflow.com/questions/15459187/iframe-cross-domain-access
http://enable-cors.org/
Sergey Alexandrovich Kryukov 10-Jul-13 11:00am
   
What is "parent site". What, are you trying to break some other site? :-)
What is "authorize iframe". How come it needs authorization?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100