A
Andrew Poulos
When I run the following code in FF 1.5 and 2, and IE 6 on my computer
the table and image appears. When I run it on the client's XP machine it
appears under FF 1.5 but under IE 6 the window is blank but IE appears
to be in some sort of loop (after about 10 seconds I get the 'not
responding' message in the title bar and have to close IE).
What is it that causes it to behave differently on different computers?
var t = document.createElement("TABLE");
t.id = "txt0";
t.style.width = "200px";
var b = document.createElement("TBODY");
var r = document.createElement("TR");
var d = document.createElement("TD");
c.style.height = "145px";
var myimg = document.createElement("IMG");
d.appendChild(myimg);
myimg.src = "images/mm.png";
r.appendChild(d);
b.appendChild(r);
var r = document.createElement("TR");
d = document.createElement("TD");
d.style.textAlign = "center";
d.style.paddingTop = "4px";
d.style.paddingLeft = "38px";
d.style.fontWeight = "bold";
var txt = document.createTextNode("item");
d.appendChild(txt);
r.appendChild(d);
b.appendChild(r);
t.appendChild(b);
document.body.appendChild(t);
Andrew Poulos
the table and image appears. When I run it on the client's XP machine it
appears under FF 1.5 but under IE 6 the window is blank but IE appears
to be in some sort of loop (after about 10 seconds I get the 'not
responding' message in the title bar and have to close IE).
What is it that causes it to behave differently on different computers?
var t = document.createElement("TABLE");
t.id = "txt0";
t.style.width = "200px";
var b = document.createElement("TBODY");
var r = document.createElement("TR");
var d = document.createElement("TD");
c.style.height = "145px";
var myimg = document.createElement("IMG");
d.appendChild(myimg);
myimg.src = "images/mm.png";
r.appendChild(d);
b.appendChild(r);
var r = document.createElement("TR");
d = document.createElement("TD");
d.style.textAlign = "center";
d.style.paddingTop = "4px";
d.style.paddingLeft = "38px";
d.style.fontWeight = "bold";
var txt = document.createTextNode("item");
d.appendChild(txt);
r.appendChild(d);
b.appendChild(r);
t.appendChild(b);
document.body.appendChild(t);
Andrew Poulos