I have the following function (worked in IE6 but is broken in IE8)
function implode() { var str = '';
for(item in globvars) //<- IE8 wets itself here ...
str+= '\n' + globvars[item]+';';
return str+'\n';
}
It seems an innocuous little function, but IE8 dosent grok it. Can anyone show me how to rewrite this so it work in IE8 (as well as the other browsers)?
[Edit]
At the begining of the script (i.e. first line after the tag, I have defined the globvars like this:
var globvars = new Array(); // This should give globvars global scope
The error from IE8 is:
Object does not support this action