Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A tip for YouTube placements in osCommerce


Roaddoctor

Recommended Posts

After a bit of frustration, I came across a solution to prevent the Internet Explorer "Page will not load - Operation Aborted" error that can occur when embeding a YouTube video within the BODY of your product pages or other osCommerce pages. This error is most prevelent if the script is in a TD and not in the BODY. This Microsoft KB article explains the technical reasons: http://support.microsoft.com/kb/927917

 

You Tube suggests this code:

 

<div>
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/khYxxxxErqk&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/khYxxxxErqk&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
</div>

 

Which will randomly cause the Operation Aborted error in IE 6 and 7.

 

Just strip out the <object> portion like this

 

<div>
<embed src="http://www.youtube.com/v/khYxxxxErqk&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
</div>

 

and poof fixed. The answer above was found here: http://www.eastwoodzhao.com/day-4-internet...ty-issue-fixed/

 

Any suggestions for a better way are welcome! This was just a simple fix and I am curious as to what potential negatives can result by stripping out the object portion. Any smart people please reply

 

Enjoy

-Dave

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...