Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Resizing IFrame
05-28-2009, 10:37 PM #1
- Join Date
- May 2009
- Thanked 0 Times in 0 Posts
I have an IFrame on a page which shows textual content and am trying to resize the IFrame based on the content. I have managed to acheive that but then the outer scrollbar for the page will not scroll to the bottom of the article! And also my print function will not display the content in the IFrame.
So I was trying to put the text into a div by using the following code:
The problem is that the code for sContent returns the text(code) for the parent page and not the text(code) nested in the IFrame so it ends up putting my left navigation bar into the div instead of the textual content! I have also tried using:
sContent=window.frames["ArticleFrame"].document.body.innerHTML but then sContent value is blank.
Any ideas or suggestions?