Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,680
    Thanks
    28
    Thanked 4 Times in 4 Posts

    I get Validation Errors on the Video embed - what can I do about it ?

    I was just validating my video web page and it
    came up with 11 errors.

    All of them are due to this code:

    PHP Code:
    <embed flashVars="playerVars=showStats=no|autoPlay=yes|videoTitle=<?php echo $title ?>"
    src="<?php echo $vid_link ?>"
    width="700" height="604" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" 
    type="application/x-shockwave-flash" allowFullScreen="false" allowScriptAccess="always" name="Metacafe"> 
    </embed>
    These are the errors:

    Attribute "FLASHVARS" is not a valid attribute
    Attribute "SRC" is not a valid attribute. Did you mean "src"?
    Attribute "WIDTH" is not a valid attribute. Did you mean "width"?
    Attribute "HEIGHT" is not a valid attribute. Did you mean "height"?
    Attribute "WMODE" is not a valid attribute. Did you mean "code" or "frameborder"?
    Attribute "PLUGINSPAGE" is not a valid attribute
    Attribute "TYPE" is not a valid attribute. Did you mean "type"?
    Attribute "ALLOWFULLSCREEN" is not a valid attribute
    Attribute "ALLOWSCRIPTACCESS" is not a valid attribute
    Attribute "NAME" is not a valid attribute. Did you mean "name"?
    element "EMBED" undefined. Did you mean "meta" or "em"?

    Half of these are very strange eg Attribute "SRC" is not a valid attribute. Did you mean "src"? and Attribute "WIDTH" is not a valid attribute. Did you mean "width"? Since what it suggests is what is in the code anyway !

    This is the embed code taken from Metacafe so I don't see that I should be changing it - but I would like my webpage to be valid

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,862
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    <embed> tag is deprecated and so most of its attributes. If it's an swf file, make use of swfObject(google it) method.
    Last edited by abduraooft; 12-22-2009 at 06:29 PM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder
    Join Date
    May 2006
    Posts
    1,680
    Thanks
    28
    Thanked 4 Times in 4 Posts
    If <embed> tag is deprecated
    why is big site like Metacafe still using it and
    wanting members to use it ?

  • #4
    Senior Coder
    Join Date
    May 2006
    Posts
    1,680
    Thanks
    28
    Thanked 4 Times in 4 Posts
    I am reading up on this swfobject which uses javascript to embed the
    swf files.

    They say that I need to have adobe flash player 9.0
    Well I was going to use Flowplayer.

    Does this mean that if I use swfobject then I can not use Flowplayer?
    Or am I getting mixed up ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •