pumpkinapo
Programmer
I seem to be having a problem with setting style.display = "block" though javascript. On IE 5.5 SP2 it will crash the browser, on IE 6.0 it works fine. Here is a sample of the sections of code:
tb.appendChild(myClone);
//alert('' + tb.lastChild.style.display);
tb.lastChild.style.display = "block";
//alert('fail point 12');
if ( (inNo % 2) == 0 )
{
tb.lastChild.style.background = "#EBEBEB";
}
If I uncomment the first alert it will work fine, however the user would get an alert message. When I comment it out, IE 5.5 crashes. The page in question can be found here:
Javascript can be found here:
Line: 128
To execute the function click on the "Add New Entry" button.
Thanks for the help!
Peter Leing
tb.appendChild(myClone);
//alert('' + tb.lastChild.style.display);
tb.lastChild.style.display = "block";
//alert('fail point 12');
if ( (inNo % 2) == 0 )
{
tb.lastChild.style.background = "#EBEBEB";
}
If I uncomment the first alert it will work fine, however the user would get an alert message. When I comment it out, IE 5.5 crashes. The page in question can be found here:
Javascript can be found here:
Line: 128
To execute the function click on the "Add New Entry" button.
Thanks for the help!
Peter Leing