I ended up taking a different approach.
Instead of editing the CSS in the iFrame, I made sure the CSS was already there, but added the class name to the appropriate element.
Inside the afterrender event of the window that has the Ext.ux.IFrame as an item, I added the following jQuery code.
Code:
$("iframe").load(function () {
$("iframe").contents().find('body').attr({'class': 'high_light'});
});
Then, for any <DIV> I want to be 'highlightable', I add the class 'will_high_light' and include the following CSS.
Code:
.high_light .will_high_light {
cursor: pointer;
padding: 1px 0px;
}
.high_light .will_high_light:hover{
background-color: yellow;
}
Now, when I view the page page 'normally' in a browser, the DIVs do not highlight. However, when viewed inside the iFrame inside the ExtJS webtop, they high light on hover with the cursor changing to a pointer.
This is because the single class attribute 'high_light' is applied to the 'body' element and therefore the CSS selectors then match.
Now I just need to figure out how to get events to bubble/relay to the 'host' from inside the iFrame. Ugh. 