Connecting Tech Pros Worldwide Help | Site Map

IE6 JS setting colspan setAttribute not being honored

Craig Taylor
Guest
 
Posts: n/a
#1: Jan 23 '07
I've seen other referances to this bug in IE when researching the
problem but haven't seen any solutions. Apparently IE does not honor
setAttribute of colspan when building a table.

Does anyone know of a workaround other than manually padding with empty
cells?

eg:

tdElem.setAttribute( "colspan", "3" );

Thanks,

- Craig Taylor
http://www.ctalkobt.net

augustus kling
Guest
 
Posts: n/a
#2: Jan 23 '07

re: IE6 JS setting colspan setAttribute not being honored


Try writing as "colSpan" not "colspan". Another way is using
tdElem.colSpan.
Keep in mind that IE needs <tbodyafter <table>, if IE creates his own
<tbodyappend to it instead of creating an own <tbody>.

Greetings

On Jan 23, 9:46 pm, "Craig Taylor" <ctalk...@gmail.comwrote:
Quote:
I've seen other referances to this bug in IE when researching the
problem but haven't seen any solutions. Apparently IE does not honor
setAttribute of colspan when building a table.
>
Does anyone know of a workaround other than manually padding with empty
cells?
>
eg:
>
tdElem.setAttribute( "colspan", "3" );
>
Thanks,
>
- Craig Taylorhttp://www.ctalkobt.net
Craig Taylor
Guest
 
Posts: n/a
#3: Jan 23 '07

re: IE6 JS setting colspan setAttribute not being honored



augustus kling wrote:
Quote:
Try writing as "colSpan" not "colspan". Another way is using
tdElem.colSpan.
Keep in mind that IE needs <tbodyafter <table>, if IE creates his own
<tbodyappend to it instead of creating an own <tbody>.
>
Greetings
>
That did it.

I am putting the tbody & thead in the table but can't use the .colSpan
directly as I'm updating the table based upon results coming back from
a JSON array.

Thanks!

- Craig Taylor
http://www.ctalkobt.net

Closed Thread