I know this topic has been done a lot, but what I have tried does not seem to work well, at least in my situation.
Here is my development site: Link
What should happen is that the left side (Father's Prayer) should resize to fit the content. The content is located in different pages, all on my site. Currently, I am just working with the "Contact Us" button until it works. If you click on it the iFrame does resize, but that is because my script sets a fixed size (the script is inside the ContactUs.html page):
<script>
window.onload = parent.document.getElementById("Content").height = 800;
</script>
But, this requires me to determine the ideal size of each child page loaded, I'd rather not do that. Is there a way to have the js determine the size of the page that it is in? Many of these pages will include images, so I need to know the "after loaded" size.
Thanks in advance.
Here is my development site: Link
What should happen is that the left side (Father's Prayer) should resize to fit the content. The content is located in different pages, all on my site. Currently, I am just working with the "Contact Us" button until it works. If you click on it the iFrame does resize, but that is because my script sets a fixed size (the script is inside the ContactUs.html page):
<script>
window.onload = parent.document.getElementById("Content").height = 800;
</script>
But, this requires me to determine the ideal size of each child page loaded, I'd rather not do that. Is there a way to have the js determine the size of the page that it is in? Many of these pages will include images, so I need to know the "after loaded" size.
Thanks in advance.