Empt Img

N

Nir

Hello,

I have a simply code in JavaScript which add a new column to TR
here it is .

var td=document.createElement('td');
var col = document.createElement('IMG');
col.setAttribute('width',0);
col.setAttribute('maxLength',0);
col.setAttribute('dir','ltr');
col.setAttribute('src','/FlyingCargo/Images/gar.gif');
td.appendChild(col);
tr.appendChild(td);


Sometimes this code does not work it seems like it does not work only
in the first row i append to table.


maybe it is a problem of timing ???

Anyone have any idea ?


Thank's
Nir Salab
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,083
Messages
2,570,591
Members
47,212
Latest member
RobynWiley

Latest Threads

Top