aefitzhugh
20 Mar 2007, 4:30 AM
[Moved here from the Alpha forum]
For some reason I have not been able to use applyStyles() successfully in IE6.
I created a virtual one-liner example that demonstrates the error I see in IE6, but which works in FF:
http://aefitzhugh.googlepages.com/iebugtest.htm
My sample just sets the background-color of a single div to magenta:
<script language="javascript" type="text/javascript">
window.onload = function(){
var el = Ext.get('main');
el.applyStyles('background-color: #ff00ff;');
};
</script>
The MS script editor debugger shows the error in Element.setStyle() at:
this.dom.style[camel] = value;
I'd like to hear if others get the same behavior when loading the above page, as well as any ideas re: its possible cause. Thanks!
For some reason I have not been able to use applyStyles() successfully in IE6.
I created a virtual one-liner example that demonstrates the error I see in IE6, but which works in FF:
http://aefitzhugh.googlepages.com/iebugtest.htm
My sample just sets the background-color of a single div to magenta:
<script language="javascript" type="text/javascript">
window.onload = function(){
var el = Ext.get('main');
el.applyStyles('background-color: #ff00ff;');
};
</script>
The MS script editor debugger shows the error in Element.setStyle() at:
this.dom.style[camel] = value;
I'd like to hear if others get the same behavior when loading the above page, as well as any ideas re: its possible cause. Thanks!