I have 2 iframes:
- navigation
- dynamic content
I'm resizing content using JavaScript:
function autoResize(id) {
var newheight;
newheight = document.getElementById(id).contentWindow.document.body.scrollHeight;
document.getElementById(id).height = (newheight) + 'px';
};
The html is:
<iframe src="navigation.jsp" id="leftFrame" name="leftFrame" onload="autoResize('leftFrame');" frameborder="0" scrolling="auto" width="200" style="height: 100%;"></iframe>
<iframe src="" id="mainFrame" name="mainFrame" onload="autoResize('mainFrame');" frameborder="0" scrolling="no" width="200" style="height: 100%;"></iframe>
My dynamic pages have some expandable content, but when I'm clicking to expand content page hide its content. (scrollbar="no" for mainFrame )
I don't want to enable scrollbar for main frame because it shows two scrollbars (i.e. mainframe & browser scrollbar) What should i do to fix it?