can't use iframe in tab panel created with ContentPanel()?
can't use iframe in tab panel created with ContentPanel()?
I use YAHOO.ext.ContentPanel() to create tab panel. But one strange thing happen, image or button in iframe is not visible, but plain text can be see. I use yui-ext.0.33-beta4 and BorderLayout to create tab panel.
This happen with IE 6.0, but with FF 1.5.0.8, it's OK!
Any hints? Thanks!
The iframe html file is simple:
<html>
<body>
<img src="img/test.gif border=0>hello
</body>
</html>
'test.gif' image is not visible, 'hello' can be see.
navPanel = new YAHOO.ext.ContentPanel('nav', {title: 'Navigation', fitToFrame:true, closable:false});
layout.add('west', navPanel);
layout.add('center', new YAHOO.ext.ContentPanel('main', {title: 'Auto Tabs', closable: true}));
layout.add('center', new YAHOO.ext.ContentPanel('autoTabs', {title: 'Auto Tabs', closable: true}));
layout.getRegion('center').showPanel('main');
// restore any state information
layout.restoreState();
layout.endUpdate();
}
}
}();
YAHOO.ext.EventManager.onDocumentReady(Example.init, Example, true);