tags:

views:

100

answers:

1

A very stripped down example here.

Code:

function changeBackground() {
  var testDiv = Ext.get("test");
  var allStyleDivs = testDiv.select("*[style*='background-color'], *[style*='BACKGROUND-COLOR']");
  allStyleDivs.each(replaceBackground);
}

function replaceBackground(element) {
  element.setStyle('background-color','blue');
}

In FF, IE8, Chrome this page works fine. IE7 says Object doesn't support this property or method. What's the dealy yo?

+1  A: 

See this post on the ExtJs Forum

David