Displaying 1 result from an estimated 1 matches for "addlinktotable".
2008 Jan 22
3
dynamic table/adding rows in IE using 'new Element("tr")'
...te a table using ''new Element("table")'', insert it in DIV and
then add links - one row per link (or the other way round - create a
full table, then insert it).
I initially wrote a code that worked fine in Firefox, but did not in
IE (currently testing with 6.0):
function addLinkToTable(table, link){
var r = new Element("tr");
var c = new Element("td");
table.insert(r.insert(c.insert(link)));
}
The table gets built but is not visible in IE. Then the alternative
function below do not use "new Element()", but instead uses the
standard DOM method...