When developing this website I ran into an error with my .swf logo that was causing this error in Internet Explorer: “SWFObject” is undefined. I will show you how I resolved this error, it was pretty simple.
![]()
Again, the problem at hand was that any Internet Explorer user who browsed to my site would encounter a error warning in the browser’s lower bar stating “‘SWFObject’ is undefined” and if double-clicked would see this error:
Looking at the code you can see that it says the exact line number of the problemed code. After looking into my code I noticed that the this HTML was inserting the swf into my website with the following code:
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
Next, a JavaScript code would register that object:
<script type="text/javascript"></script>
It turns out that the swfobject.js file the script above was looking is not in the same directory… therefore, the SWF was not being registered and is in turn undefined causing the “SWFObject” is undefined error in Internet Explorer. To resolve this I simple defined the path to the swfobject.js script using
<script type="text/javascript" src="path/to/swfobject.js" />
as seen here in the code:
<script src="../../../../Scripts/swfobject_modified.js" type="text/javascript"></script>
Poof! The error is gone and everything is fine, fine, fine. Let me know if this works for you or if you are having problems in the comments below. Thanks!
Related posts:
- WordPress Lavalamp Navigation Tutorial Lavalamp is an awesome jQuery plug-in that makes really cool effects for WordPress-based menus and navigation links, and as a bonus it is very lightweight. It can be a bit tricky to implement in WordPress, but after you read this tutorial hopefully you'll be implementing it with ease. Follow along and let's get your site's [...]...
- SharePoint Browser Crash Solution One of the most common problems around the office seems to be the browser crashes when attempting to open files in a SharePoint document library. Luckily, most of the time it is an easy fix. Problem: Internet Explorer crashes (stops responding) when you try to open an Office document in a SharePoint document library. Scenario: [...]...
- SharePoint Browser Error Solution: Datasheet View Error Problem description: If a site has a document library using the Datasheet view a user will receive the following error when trying to navigate to the site. "The list is displayed in Standard view. It cannot be displayed in Datasheet view for one or more of the following reasons: A datasheet component compatible with Windows [...]...
- SharePoint Masterpage is Invalid Error Solution Are you receiving the error "The URL ../../_catalogs/masterpage is invalid" when you try to check out a page using SharePoint Designer? I received the error pop-up everytime and after awhile it got very annoying. The following article will show you how to resolve this error: Above: A view of the error popup Problem: The [...]...
- SharePoint Error: Your client does not support opening this list with Windows Explorer Using Windows Explorer to view SharePoint document libraries is a very important feature for users. Some users may experience an error stating the client does not support this feature. The following will solution will provide a fix. Problem: When you try to use the "Open with Windows Explorer" feature from Internet Explorer (IE version 6 [...]...







thanks been trying to sort out this error on my site for days found your site and fixed it in 1 min
funny thing i posted on loads of ?/expert swf sites and others and did not get an answer thanks again your a god in my eyes
pete
19 Mar 10 at 9:37 am
Hi Thanks i got solved d problem which was the script error, But i dont get the clear output, problem in loading.. i am not able to view the contents in the tag.. please help
thanks in advance
K.Rajiv
Rajiv
19 Jul 10 at 6:16 am