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











CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: help: location of an element within a collection
•  Help with a form
•  Re: Response.Redirect is not working
•  Re: tellafriend
•  Re: Code Snippets
•  Re: Software Planning
•  Re: Set up file Down Load
•  Re: open excel file in html page
•  Re: How to open a .DOC file in MS-Word thru a link


Recent Articles
Simple Thumbnail Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)
Function to Return Alpha Characters Only
The OSI Reference Model - A Clear and Concise Illustration !


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2004