[Javascript] Inserting a spacer row
Steve Clason
stevec at topdogstrategy.com
Fri Apr 8 12:28:23 CDT 2005
On 4/8/2005 10:09 AM Matt Warden wrote:
>> newCell.setAttribute("class", "spacer");
>
>
> Have you tried using newCell.className = 'spacer'; instead? I had a
> similar problem with style not applying in IE and it was because I was
> using setAttribute() and not the object property equivalent.
I had to change that line and also this:
//bad
newCell.setAttribute("colspan", 5);
to this:
//good
newCell.colSpan = '5';
Now it's working like a dream. Thanks Matt and Paul.
--
Steve Clason
Web Design and Development
Boulder, Colorado, USA
www.topdogstrategy.com
(303)818-8590
More information about the Javascript
mailing list