Connecting Tech Pros Worldwide Help | Site Map

IE6 JS setting colspan setAttribute not being honored

 
LinkBack Thread Tools Search this Thread
  #1  
Old January 23rd, 2007, 07:55 PM
Craig Taylor
Guest
 
Posts: n/a
Default IE6 JS setting colspan setAttribute not being honored

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, 08:05 PM
augustus kling
Guest
 
Posts: n/a
Default 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, 08:25 PM
Craig Taylor
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.