Change the following line
newCell.classname = "TD.header3";
to
newCell.className = "header3";
className is case sensitive and the TD. refers to the tag.
Here is a snippet from some code I wrote before.
// create an element whose tag name is TD and fill in attributes
mycurrent_cell=document.createElement("TD");
mycurrent_cell.colSpan = 6;
mycurrent_cell.className = "h1";
mycurrent_cell.width = 100;
I've created a component and registered it.
However, when I put it on the form, it doesn't add the unit to the uses clause when I compile. I have to do it manually to get it to work. Is there some step I'm missing which causes the unit to automatically be included when I place the component...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.