PDA

View Full Version : Help: How to change CSS in iframe using mif 2?



wvx10
15 Jun 2010, 4:53 PM
please help

i'm trying to overwrite CSS theme
(using mif 2.1.2 and extjs 3.2.0)

i try to get ext component in iframe


var iframeExt = iframe.getFrameWindow().Ext;
iframeExt.util.CSS.swapStyleSheet('theme','new-theme.css');
but not working
when i try to alert the iframeExt value, it return null but if i set

var iframeExt = iframe.getFrameWindow();
i got alert [object Window]

please help
thanks in advance

16 Jun 2010, 6:10 PM
contact the author or post in that thread.