PDA

View Full Version : Problem with dom and Ext.element in IE



da_bar
6 May 2011, 5:05 AM
I create elements with Ext.element like this:


var table = new Ext.Element(document.createElement('table'));

for(n=0;n<5;n++)
{
row = new Ext.Element(document.createElement('tr'));
for(x=0;x<4;x++)
{
col = new Ext.Element(document.createElement('td'));
col.update('cell text '+x);
row.appendChild(col);
}
table.appendChild(row);
}

Ext.fly('data').replaceWith(table);

This works in FF and IE8 but not in IE7, why is that?