Skip to main content
February 18, 2008
Question

Embed youtube content

  • February 18, 2008
  • 1 reply
  • 421 views
Hi,

I have a client for whom I've built a simple CMS to manage their site. She would like to embed youtube content in some of her articles. When I test this, it doesn't work.

This is the code as provided by youtube:
<object width="425" height="355"><param name="movie" value=" http://www.youtube.com/v/Iz0sT-563uI&rel=0&color1=0xe1600f&color2=0xfebd01&border=0"></param><param name="wmode" value="transparent"></param><embed src=" http://www.youtube.com/v/Iz0sT-563uI&rel=0&color1=0xe1600f&color2=0xfebd01&border=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>

When I view the article, the movie does not appear at all. When I view source, this is the code:

<InvalidTag width="425" height="355"><param name="movie" value=" http://www.youtube.com/v/Iz0sT-563uI&rel=1"></param><param name="wmode" value="transparent"></param><InvalidTag src=" http://www.youtube.com/v/Iz0sT-563uI&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>

The opening <object code has been changed to <InvalidTag which I'm assuming is for security reasons. Can I override this in my processing form?

Appreciate any suggestions.

Thanks,

jo
    This topic has been closed for replies.

    1 reply

    Inspiring
    February 18, 2008
    switch off Global Script Protection in CF Administrator.

    it may also be possible to change the GSP setting with <cfapplication>
    tag or in your Application.cfc, but i have not tested it...

    ---
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com