Click here to Skip to main content
15,885,956 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hello, I am using an iframe inside my page which calls a 3rd party website. Now, ours is a responsive website and we do want the cross-domain website to be responsive as well. Basically, the iframe should not show any vertical scroll bar at any time. Its height should increase/decrease based on its content. Since, this is cross domain 3rd party, I really dont have access to change any script there. What I noticed is my page loads first and then the iframe. If I dont give any height to iframe, it loads with a minimum height.

I have been through multiple solutions which talk about cross-domain scripting which I cannot do. Can someone guide me in right direction?

Thanks.
Posted

1 solution

What you're doing is obviously unethical, and thankfully not possible either.
 
Share this answer
 
Comments
TryAndSucceed 5-Aug-15 15:59pm    
It would have been unethical if the 3rd party is not allowing their product to be used in an iframe. There are many websites which allow you to use their page but they wont give control to you. I believe its not possible.
F-ES Sitecore 6-Aug-15 4:18am    
If the third party what you passing their site off as your own then they'll update their site to let you interact with it via an iframe.
TryAndSucceed 6-Aug-15 10:40am    
Yeah, they only let me use their site as an Iframe but they wont let me make any change on their site.

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