codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  dynamically created tables containing layers  jtax at 23:11 on Thursday, August 26, 2004
 

First, is that possible?

I'm able to give <tr> and <td> tags an ID but i can't seem to access them. Also, i tried created a div or span with an id inside the <td> tag but i couldn't access that either. At least with the innerHTML part of it.

jtax

  Re: dynamically created tables containing layers  ask5 at 14:28 on Sunday, August 29, 2004
 

Which browser you are using ?
In IE you can access the <TR> & <TD> tags of the table, provided every <TR> & <TD> has unique ID.

try following eg.

tdObj = document.getElementByID("TD_ID");
var txt = tdObj.innerHTML;

"TD_ID" - your ID for <TD>

  Re: dynamically created tables containing layers  jtax at 16:40 on Sunday, August 29, 2004
 

Thanks, i had the problem where i was trying to affect the row's background (row had an id) but couldn't tell the difference because the column's backgroud color took precedence.

  Re: dynamically created tables containing layers  ask5 at 04:49 on Monday, August 30, 2004
 

Hi,

Try this one, this will help you,

this is for your <TR>

trObj = document.getElementById("TR_ID");
trObj.style.backgroundColor = yourBGColor;


this will change the bgcolor of the row






© Copyright codetoad.com 2001-2004