SwfObject JavaScript Error in IE7
I have been doing some updates and optimizations to my site this last week that included some Flash Player 10 integration. In the process, I noticed that I was having an issue on Internet Explorer 7 where there was a JavaScript error that kept popping up when using the SWFObject. The error was not very informative... simply telling me that an Object was expected.
After some fiddling, I discovered that the solution to the problem was to make sure that the containing object tag included an ID. I gave the ID the value of the name of the SWF file (minus the .swf). I did not experiment to see if the value of the ID is important. (After re-reading the documentation of SWFObject... I realized that adding the ID is part of the process of using SWFObject--I had simply missed that in the docs; so if you missed it in your reading... here is your solution!)
- Related Topics
teh NZ
Dec 8, 2008
Reply