WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 dynamics objects, Flavio, April 2, 2004
     Re:dynamics objects, Mikael, April 2, 2004
         Re:dynamics objects, Flavio, April 3, 2004
             Re:dynamics objects, Erik Arvidsson, April 3, 2004
                 Re:dynamics objects, Flavio, April 3, 2004
                     Re:dynamics objects, Erik Arvidsson, April 7, 2004
                         Re:dynamics objects, Flavio, April 17, 2004
                             Re:dynamics objects, Erik Arvidsson, April 18, 2004
                                 Re:dynamics objects, Flavio, April 18, 2004
                                     Re:dynamics objects, Erik Arvidsson, April 22, 2004
                                         Re:dynamics objects, Flavio, April 23, 2004
                         Re:dynamics objects, Mikael, April 9, 2004
                     Re:dynamics objects, Mikael, April 7, 2004

Subject: Re:dynamics objects From: Erik Arvidsson Date: April 18, 2004
I'm not sure this is the problem but DOM is case sensitive so you need to be careful here. Use these instead

vAlign
colSpan
cellSpacing
cellPadding (you should really use padding on the tds)
style.width
style.height
style.border

Do not use innerHTML += "" (EVER)! If using that all your references will point to elements that are not in the document any more and your event handlers will be attached to elements that are not part of the document.

Here is a simple test.

window.onload = function ()
{
var el = document.createElement( "DIV" );
el.appendChild( document.createTextNode( "hello world" ) );
el.onclick = function () { alert( 1 ); };
document.body.appendChild( el );
document.body.innerHTML += "";
};

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX