Drupal Fix for Internet Explorer Cannot open the internet site with embeded Youtube and Google Video
Created:
Last Updated:
Drupal is a wonderful CMS platform for building an encompassing and professional website presence. I have however, run into an issue where Drupal does not like to show embeded video's through Youtube or Google Video when viewing a page in Internet Explorer. If you try to visit the page with the embeded YouTube or Google Video, Internet Explorer throws up an error message to the effect of:
Internet Explorer Cannot open the internet site http://domain.com/page
Operation Aborted.
You are then redirected to a page cannot be displayed error.
After running across this article: http://www.dogster.com/forums/Tips_Tricks_and_Help_On_Dogstercom/thread/482204
I found that the W3C is trying to do away with the <embed> tag and replace it with the <object> tag. Both Internet Explorer 7 and IE6 have a known bug where they do not like seeing the two together which is how YouTube gives the code for you to put on your website. Google Video, last I checked, provides the code as <embed></embed> But that doesn't mean it won't change. Just take note on what the embedded code is from Google.
So, to fix the problem, just remove anything related to the <object> tag.
Let's take a look at an example of the simple fix.
This is the unaltered code from YouTube:
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/0Q2aPi9ZEgs&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/0Q2aPi9ZEgs&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>Notice the <embed> tag is within the <object> tag. Simply remove anything related to the <object> tag, like so:
<embed src="http://www.youtube.com/v/0Q2aPi9ZEgs&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed>That's It! You should no longer receive the error message when viewing in IE!
Comments
The Wichita Computer Guy is hosted by one of the best hosting companies on the market: Hostgator.com. Not only do they provide unlimited domain addons, subdomains and parked domains, they also offer unlimited databases, unlimited hosting space and unlimited bandwidth! We have been using Hostgator for several years now and had great customer service support and almost 100% uptime. If you are looking for a website hosting company that provides everything you need for a powerful CMS based website, take a look at Hostgator.com!!

Post Comment