Connecting Tech Pros Worldwide Help | Site Map

IE6 JS setting colspan setAttribute not being honored

  #1  
Old January 23rd, 2007, 08:55 PM
Craig Taylor
Guest
 
Posts: n/a
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

  #2  
Old January 23rd, 2007, 09:05 PM
augustus kling
Guest
 
Posts: n/a

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
  #3  
Old January 23rd, 2007, 09:25 PM
Craig Taylor
Guest
 
Posts: n/a

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