Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My scenario is:

ABC.com has an iframe like
XML
<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 3: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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900