Solved

Embedded YouTube Video Not showing in IE

Posted on 2008-10-14
8
2,750 Views
Last Modified: 2011-10-19
Experts:

Check out the link:

http://www.dannyesquivel.com/?page_id=208

There is an embedded youtube video that is showing fine in firefox and of course is not showing up in IE7

Attached is the code and the screenshot of the error,

thks!
<?php get_header(); ?>
<style type="text/css">
<!--
.style14 {
	color: #183152;
	font-size: 24px;
}
.style15 {
	font-family: "Arial Narrow";
	font-size: 24px;
	font-weight: bold;
}
.style17 {
	color: #000000;
	margin-left: 5px;
	font-family: "Arial Narrow";
	font-size: 14px;
}
.style19 {
	color: #000000;
	margin-left: 5px;
	font-family: "Arial Narrow";
	font-size: 12px;
}
.style22 {color: #000000; margin-left: 5px; font-family: "Arial Narrow"; font-size: 12px; }
.style27 {font-size: 18px}
.style29 {
	color: #183152;
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
 
 
 
 
<script src="../../../../../Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="../../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<div id="homepage">
 
<div id="hpmain">
 
				
 
		<div class="hpmainleft">
 
		<div class="hpfeaturedbottom">
 
			
 
 
<div style="padding-top:10px; clear:both;"></div>
				<p align="justify" class="style15">Bienvenidos a marinapena.com!</p>
				<p align="justify">  	
 
<img style="margin-right:10px; "src="<?php bloginfo('template_url'); ?>/images/marina150.jpg" alt="<?php bloginfo('name'); ?>" width="105" height="128" align="left" /><span class="style5 style13"><span class="style17">Entender lo que sentimos es abrir una puerta para comprender nuestras acciones. El desarrollo de este sitio se enfoca principalmente<br />
			    en seguir difunedo y ayudando a mas personas a encontrar el camino para enfrentar la adversidad con mayor fotaleza<br />
			    Tener conciencia y conocer el valor del amor es la clave para lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand<br />
			    lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand<br />
			    lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand lograr cualquier proposito<br />
			    en nuestras vidas. akdkajckjanckjandckjand lograr cualquier proposito en nuestras vidas. akdkajckjanckjandckjand</span></p>
		</div>
 
			
          <div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>
          <p align="justify"><img src="<?php bloginfo('template_url'); ?>/images/BOTTON1.gif" alt="<?php bloginfo('name'); ?>" width="104" height="35" align="middle" /><span class="style5 style13"><span class="style14"><span class="style11"><span class="style22">Transtorno de D&eacute;ficit de Atenci&oacute;n. Descubre qu&eacute; es este trastorno c&oacute;mo se manifiesta y qu&eacute; hacer para controlarlo. Mas detalles puedes encontrarlos en las seccion de CEPEF.</span></span></span></p>
          <ul>
            <div class="hpfeaturedbottom">
              
              
              
              
              <div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>
              <p align="justify"><img src="<?php bloginfo('template_url'); ?>/images/rojogif.gif" alt="<?php bloginfo('name'); ?>" width="104" height="35" align="middle" /><span class="style5 style13"><span class="style19">Descubre cuales son los problemas de aprendizaje mas comunes y algunos m&eacute;todos<br />
  que te podr&iacute;an ayudar.</span></p>
            </div>
            <div class="hpfeaturedbottom">
              
              
              
              
              <div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>
              <p align="justify"><img src="<?php bloginfo('template_url'); ?>/images/naranja.gif" alt="<?php bloginfo('name'); ?>" width="104" height="35" align="middle" /><span class="style5 style13"><span class="style19">Porqu&eacute; mi hijo es desafiante.<br />
  Encuentra cuales son las causas de esta conducta y estrategias pr&aacute;cticas de intervenci&oacute;n</span></p>
            </div>
            <span class="style19">
            <h3>
	                   <p>&nbsp;</p>
          </ul>
  </div>
 
		
 
<div class="hpmainright">
 
		
 
			<!--This section is where the custom images are found for the homepage right column - note the custom field name for this image is "homepage". Recommended image size is 82x55, as the stylesheet is written for this size.-->
<div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>
 
			  <p>
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(4) ) : else : ?>
    <li id="links">
 
		<h2 align="left">Enlaces Importantes</h2>
 
			<ul>
 
				<?php wp_list_bookmarks('title_li=0&categorize=0&category=28&show_images=1&show_description=28&orderby=url'); ?>
			</ul>
	  </li>
        
        </p>
        <div style="padding-top:10px;border-bottom:1px dotted #C0C0C0; clear:both;"></div>
        
    </div> 
            
        <div class="hpfeaturedbottom">
          <p align="center" class="style25"><span class="style29">Video de Marina</span> </p>
          <div>
        <script type="text/javascript">
AC_AX_RunContent( 'width','390','height','300','align','middle','src','http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1','type','application/x-shockwave-flash','allowfullscreen','true','movie','http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1' ); //end AC code
</script><noscript><object width="390" height="300" align="middle">
          <param name="movie" value="http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1" width="390" height="300" align="middle" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></noscript>
  </div>
             
	<div style="padding-top:10px;border-top:1px dotted #C0C0C0; clear:both;"></div>
        
        <div class="hpfeaturedbottom">
				
          
        <div class="style27" style="float:right; margin:0px -15px 5px 0px; width:371px">
        
        
    
       
  <?php endif; ?>
  </p>
        </span></div>
      </div>
</div>
<span class="style27">
<!-- begin r_sidebar -->
</span></div>
<span class="style27">
<!-- begin r_sidebar -->
</span>
<p class="style27">
  <!-- end r_sidebar -->
  
  
  
  
  <!-- The main column ends  -->
  
  
  
  <?php get_footer(); ?>
</p>

Open in new window

screenshot.GIF
0
Comment
Question by:esquivelp
  • 3
  • 3
  • 2
8 Comments
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 250 total points
ID: 22717991
Have you checked your active-X settings in Control panel, internet options?  I have mine set to not run active X scripts because it is a security risk -- but if active scripting is disabled, then no videos will show.  Keep in mind that people running IE who don't want viruses and trojans may disable active-X scripting.
0
 
LVL 1

Author Comment

by:esquivelp
ID: 22723023
Active Scripting is enable and I have checked in several computers and none of them seems to show the video. Is it showing for you?
0
 
LVL 54

Assisted Solution

by:b0lsc0tt
b0lsc0tt earned 250 total points
ID: 22723807
It did not show for me in IE.  Do you have the Youtube page that shows the video?  What is its URL?  The reason I ask is the URL is a little diferent from the usual one in embedded videos.  I wonder if that is a problem.
One other, possible cause is the script tags below do not return a good script page.  If that is needed for part of this in IE then that is a problem.

<SCRIPT src="../../../../../Scripts/AC_ActiveX.js" type=text/javascript></SCRIPT>
<SCRIPT src="../../../../../Scripts/AC_RunActiveContent.js" type=text/javascript></SCRIPT>
They had a http 400 error so it just may be a bad file name or path in the src attribute.  Are they part of the video or that section of the page?  What about the script that starts with "AC_AX_RunContent" and ends with "//end AC code"?  Does that relate?  It is in the same section.
I did notice a problem in the code for the object.  I have corrected it in the snippet below.  Basically it ended before it should and the noscript tag was in the wrong place.  I removed the noscript and fixed the object's closing tag.
Let me know how this works or if you have a question.  I did notice you had some style tags in the body.  Those need to be in the head section of the html instead.  I doubt this is a source of the problem but should be corrected.
bol

<OBJECT height=300 width=390 align=middle><PARAM NAME="src" VALUE="http://www.youtube.com/v/BkMNzDYgFlk&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;border=1"><PARAM NAME="allowfullscreen" VALUE="true"><PARAM NAME="movie" VALUE="http://www.youtube.com/v/BkMNzDYgFlk&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;border=1"><embed src="http://www.youtube.com/v/BkMNzDYgFlk&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1" width="390" height="300" align="middle" type="application/x-shockwave-flash" allowfullscreen="true"></embed></OBJECT>

Open in new window

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22724557
It will never show with active-X disabled, as I have it.  I just wanted to alert you to this fact in case you weren't aware of the issue.
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 22725327
The default IE setting would not stop the object.  Although that could definitely be a problem with a specific user it isn't the main problem on your page.  The code just doesn't work as you have it, hopefully for the reasons I mentioned.  You should be able to embed the video and IE users should be able to see it, if they haven't changed their settings to disable it.  If they can watch a youtube video in IE then it should work for them on this page once we get the code working.
bol
0
 
LVL 1

Author Comment

by:esquivelp
ID: 22727396
Hey guys!! Guess what?? Now its working, I don´t understand why, I tried with a different video and copy the embeded and with the following script is working now, I will split the points...

Thks pals!

 <div class="hpfeaturedbottom">
          <p align="center" class="style25"><span class="style29">Video de Marina</span> </p>
        
         <object width="390" height="349"><param name="movie" value="http://www.youtube.com/v/7sjSHazjrWg&hl=en&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/7sjSHazjrWg&hl=en&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1" type="application/x-shockwave-flash" allowfullscreen="true" width="390" height="349"></embed></object>

Open in new window

0
 
LVL 1

Author Closing Comment

by:esquivelp
ID: 31506173
thks!
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 22727615
If that is the code you have now that works then it is most likely because of the corrections.  The object tag is closed correctly and the noscript tags aren't in the middle of the code.
If you agree that this is the fix then did you mean to assign a B grade?  It would seem our contributions and specifically that part of mine were the exact fix.  I am glad it is working but the grade makes it seem the answer isn't complete.  Let me know if that isn't the case and there was a mistake when you closed this.  It is easy to fix.  If you have a question let me know.
I'm glad it is working.
bol
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Converting dates in JavaScript 2 34
Change Background Color of Website 5 17
Html test in IIS 4 20
Mobile page Scrolling down when refreshing 4 30
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question