swfobject 2.2 can't work properly in IE8.

206 views
Skip to first unread message

Charles

unread,
Sep 18, 2009, 3:27:02 PM9/18/09
to SWFObject
swfobject 2.2 can't work properly in IE8.

"the arguments is invalid" line 565.

in IE 8, the signature of the addRule() is like this:

addRule() addRule(bstrSelector, bstrStyle, lIndex)
Number

but the function call in the swfobject.js is :

if (ua.ie && ua.win) {
if (dynamicStylesheet && typeof dynamicStylesheet.addRule ==
OBJECT) {
dynamicStylesheet.addRule(sel, decl); //just 2 param
}
}

could some one help??

Thank you~

Aran Rhee

unread,
Sep 19, 2009, 7:21:40 AM9/19/09
to swfo...@googlegroups.com
SWFObject2.2 works fine in IE8 ( many people would be complaining if it didn't). There must be something specific in your implementation.Can you supply a link to your page?
 
Aran

FFD

unread,
Sep 20, 2009, 4:13:06 PM9/20/09
to SWFObject
I had the same bug.

The reason was that I used an element ID starting with a numeric
character:

<div id="1000MK" ...>

when I switched to

<div id="THSDMK" ...>

the error went away.

(When debugging the code, it turned out that a stylesheet rule
referring at "#1000MK" was created which IE didn't like)
Reply all
Reply to author
Forward
0 new messages