R
Ralph
Hi
I have JS code to create table:
var oTableRows = null;
var oTableCols = null;
var iMainIntrCount = aMI.length/5;
var iTableRows = Math.ceil(iMainIntrCount/7);
var oMainIntrTable = document.getElementById('mainTopics');
for(var iRows=0; iRows < iTableRows; iRows++){
oTableRows = document.createElement('tr');
for(var iCols=0; iCols<7; iCols++){
oTableCols = document.createElement('td');
oTableCols.innerHTML = 'Sample Text';
oTableRows.appendChild(oTableCols);
}
oMainIntrTable.appendChild(oTableRows);
}
It works perfectly in FF but in IE i don't get anything. What do I do wrong?
Thank you for help.
I have JS code to create table:
var oTableRows = null;
var oTableCols = null;
var iMainIntrCount = aMI.length/5;
var iTableRows = Math.ceil(iMainIntrCount/7);
var oMainIntrTable = document.getElementById('mainTopics');
for(var iRows=0; iRows < iTableRows; iRows++){
oTableRows = document.createElement('tr');
for(var iCols=0; iCols<7; iCols++){
oTableCols = document.createElement('td');
oTableCols.innerHTML = 'Sample Text';
oTableRows.appendChild(oTableCols);
}
oMainIntrTable.appendChild(oTableRows);
}
It works perfectly in FF but in IE i don't get anything. What do I do wrong?
Thank you for help.