Log in or register to post comments
Last post
Change Depth of editor iFrame
Im hoping theat someone knows the answer to this question which has had me stumped...!

Im attempting to change the depth of the iFrame to show the whole of the HTML that is being edited... and not within the scrolling editor iFrmae.

I can get the depth of the HTML once the editor has loaded, change the depth of the objContent... but are struggling to change the depth of the IFrame.

Im beginning to doubt that this can be done now... unless someone knows better than me
RE: Change Depth of editor iFrame
What do you mean the "depth" of the iframe? Do you mean you want to dynamically resize the iframe based on the content in the iframe so that there are no scrollbars?
RE: Change Depth of editor iFrame
Yes exactly that... once loaded I am able to get the depth that I need to set the iFrame to... but are unable to dynamically set the depth of the iFrame, once the page has loaded.

Setting "iFrame.height" seems to be a bit quirky and doesnt change the depth of the iFrame. Ive also tried stylesheets to initially set the depth of the iFrame (before I actually know how deep the content is) and then reset these once Ive got the depth of the content... again this does nothng...

Is this actually possible??