Hi
This is about the above error message when (in my case) I included youtube videos. Normally I use Firefox but noticed one day when a video was on the frontpage of my site that I couldn't access it due to the error message :"internet explorer cannot open the internet site"
Digging a little on google I found a fix.
In /emfield/contrib/video_cck/providers/youtube.inc
Find line 130:
$output .= "<object height=\"$height\" width=\"$width\"><param name=\"movie\" value=\"http://www.youtube.com/v/$embed\"><param name=\"wmode\" value=\"transparent\"><embed src=\"http://www.youtube.com/v/$embed&rel=$related" . $autoplay_value . "\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" height=\"$height\" width=\"$width\"></object>";
and replace with:
$output .= "<embed src=\"http://www.youtube.com/v/$embed&rel=$related" . $autoplay_value . "\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" height=\"$height\" width=\"$width\"></object>";
I don't have CVS access or even the ability to use that patch thing but the fix worked for me, hope it works for others too.
Comments
Comment #1
alex ua commentedThe problem here is that the embed tag is deprecated and causes problems of its own (for example it will not validate as strict HTML compatible, which is a problem for many people who are working on client's sites). If the above code isn't working, then we have to figure out why and fix it. But using the embed tag won't be part of the solution.
Comment #2
aaron commenteduggh. if this is true, we can't release. anyone else having this problem on ie7? can you post some links where you get this error so i can see myself?
thanks,
aaron
Comment #3
philsward commentedI will attest that it is a known "bug" with IE7 that it doesn't like the
<object>...</object>tag.I have a small blog with a link to the site I found the 'fix' for it on my website: thewichitacomputerguy.com
From my understanding, W3C is trying to do away with the
<embed>...</embed>tag (which I see was already posted) and the replacement is the<object>...</object>tag. But, like many of the other problems with their software, Microsoft is aware of the "bug" but isn't doing anything about it... (Big surprise) It is an issue with both IE6 and IE7.I personally haven't looked into it / tested it, but it might also have to do with the global structure of an HTML document and how Drupal outputs it as
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">, which might be causing the problem as opposed to IE having a "bug". I will let someone else figure that one out :)My proposal, is to ax the
<object>...</object>until all browsers are compatible / fully adopted it as a standard. I don't have the need at the moment for using a module like "Embedded Media Field". I just paste the youtube generated code into my node and remove anything regarding the<object>...</object>tags leaving everything between the<embed>...</embed>tags.(Ok, I wrote this without really reading the first comment... sorry... Everything I just said was kind of already touched on...)
Oh, and as far as testing it in IE, just go to youtube, copy the code to embed in an html and paste it into a node and you "should" get the error at that point.
Anywho, not going to let this 'hardwork' go to waste! :p
Cheers!
Comment #4
alex ua commentedThe other option is to use javascript to activate it as the page loads.
See: http://capitalhead.com/articles/activating-activex-controls.aspx
I'm not sure which way is preferable, and I'll wait to talk to Aaron about this before I proceed.
Comment #5
alex ua commentedActually, this one looks a little simpler for our purposes:
http://www.mix-fx.com/flash-prompt.htm
Comment #6
aaron commentedmaybe we should use the swfobject.js script.
Comment #7
JayRebel commentedYou sound like you know what you're talking about, I don't have a clue. lol I ran into this problem and found A MIRACLE CURE BY ACCIDENT. I was sent an email that someone had replied to one of my you tube comments. Without thinking twice I clicked the link and after reading the comment I realized I was still on youtube and had not been kicked....(operation aborted). Ever since then I can log onto youtube from IE link on desktop without a hitch. I don't know why and you probably won't either but I thought I would just let you know. I don't understand programming codes or anything like that but this worked.