Javascript function works in FF, Opera etc, fails in IE8 - how to fix
Posted
by morpheous
on Stack Overflow
See other posts from Stack Overflow
or by morpheous
Published on 2010-04-26T22:01:50Z
Indexed on
2010/04/26
22:03 UTC
Read the original article
Hit count: 307
ie8
|JavaScript
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)?
© Stack Overflow or respective owner