:: Forum >>

IE 6 Bug

Hello,

i keep getting a js error on line 79 of aw.js. I exploded the code so that I could see exaclty where the error was. It occurs on the bolded line below.

if(AW.ie6 && AW.strict){
this.setTimeout(function(){
e.lastChild.style.width=(ww-20)+"px";
e.lastChild.style.height=(hh-20)+"px";
e=null
}


Any ideas/workarounds, can i remove this piece of code?

I am running it in IE 6.0

Thanks,
Adam
Monday, September 18, 2006
Me too,

It only breaks occasionally ,

but always when within a frameset.

I have 2 grids on a form and I am populating the second grid from an xml document dynamically using ajax.
Kevin
Tuesday, September 26, 2006
my problem was also on ie6

I have worked around the problem by doing the following
on my grid refresh.

setTimeout('obj.refresh();',500);

im not pleased with this but it seems to work.

are there any better solutions.?
Kevin
Tuesday, September 26, 2006
maybe it's accessing that code before the browser has finished loading as I recollect those properties are read only until the onload event

you could do

if(AW.ie6 && AW.strict){
this.setTimeout(function(){
try
{
e.lastChild.style.width=(ww-20)+"px";
e.lastChild.style.height=(hh-20)+"px";
e=null
}
catch (e)
{
}
}


but it's not a solution since it's just ignoring the problem
Tuesday, September 26, 2006
Have you chaeked the code properly
It should be like this
if(AW.ie6 && AW.strict){
this.setTimeout(function(){
e.lastChild.style.width=(ww-20)+"px";
e.lastChild.style.height=(hh-20)+"px";
e=null
})
}
Sanjay Sharma
Tuesday, September 26, 2006
Seems like the same bug (and fix/patch) as here -

http://www.activewidgets.com/javascript.forum.16802.2/doctype-and-object-required-error.html
Alex (ActiveWidgets)
Wednesday, October 25, 2006

This topic is archived.


Back to support forum

Forum search