Re: Appending to table cells
- From: Old Pedant <OldPedant@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Aug 2008 13:29:01 -0700
"SharkD" wrote:
Passing the argument, "-1", to "insertRow" and "insertCell" makes it
work in Firefox. I wonder if it works in other browsers...
DOH on me! I remember, now, discovering that a long time ago. Tch. Going
senile.
I just noticed that the insertCell method only inserts TD elements,
not TH. I'd rather not have to mess with the style properties, as
that's a great big hassle.
Can't you just clone your TH properties into a single style class and then
just apply that class to the inserted cell??
newcell = newrow.insertCell(-1);
newcell.className = "StyleThatLooksLikeTH";
??
.
- References:
- Appending to table cells
- From: SharkD
- RE: Appending to table cells
- From: Old Pedant
- Re: Appending to table cells
- From: mikh2161
- Re: Appending to table cells
- From: SharkD
- Re: Appending to table cells
- From: SharkD
- Appending to table cells
- Prev by Date: Re: Appending to table cells
- Next by Date: A New Group for Displaying/Explaining Full JS apps
- Previous by thread: Re: Appending to table cells
- Next by thread: Re: Appending to table cells
- Index(es):