PDA

View Full Version : applyStyles()/setStyle() in IE6?



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!

tryanDLS
20 Mar 2007, 7:29 AM
I believe this was recently reported in another thread. The fix will be in the next rev.

aefitzhugh
20 Mar 2007, 1:21 PM
Excellent, thanks for the info.