skip to main
|
skip to sidebar
Thursday, January 28, 2010
IE7 javascript error in for each loops
One of the reasons I like Flash is the fact that one piece of code will work on every browser. But not so with javascript. Case in point:
If you have an array (langArray) in javascript and want to loop through it the common way is this:
for each(var item in langArray){
...
}
but this causes IE 7 to choke. Instead you have to use the more verbose:
for(var item=0;item
var item = langArray[i];
...
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2011
(9)
►
November
(1)
►
July
(1)
►
April
(2)
►
February
(2)
►
January
(3)
▼
2010
(33)
►
November
(3)
►
October
(7)
►
September
(10)
►
June
(2)
►
May
(4)
►
March
(1)
►
February
(3)
▼
January
(3)
IE7 javascript error in for each loops
Flash elements disappear in full screen mode
Working with AS3 Video cuepoints
►
2009
(26)
►
December
(1)
►
November
(1)
►
October
(3)
►
September
(6)
►
August
(2)
►
June
(1)
►
March
(1)
►
February
(5)
►
January
(6)
►
2008
(70)
►
December
(4)
►
November
(10)
►
October
(6)
►
September
(1)
►
August
(4)
►
July
(2)
►
May
(6)
►
April
(13)
►
March
(7)
►
February
(9)
►
January
(8)
►
2007
(7)
►
December
(7)
About Me
Brian
View my complete profile
No comments:
Post a Comment