SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast Borrow's Avatar
    Join Date
    Jul 2004
    Location
    Australian living in London, UK.
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    EMBED not accepted by W3C Markup Validation??

    Hi Geek,

    I have problem with a HTML page that has Flash in it - when I checked with W3C Markup Validation Service - it has failed.

    It says:

    Code:
    Line 54, column 21: there is no attribute "SRC"
    
    <embed src="main.swf" width="750" height="650" quality="high" pluginsp...
    It seems W3C validation always hates the "EMBED" tags even you have to use it. Same for using Windows Media Player to play video clips in HTML page which also has EMBED tags too.

    How can fix the code to make W3C validation to accept and pass it??

    Tell me!

    Thanks,

    Lyndon

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    This thread may lead to assistance

  3. #3
    SitePoint Enthusiast Borrow's Avatar
    Join Date
    Jul 2004
    Location
    Australian living in London, UK.
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YOU DUDE MAN!!!

    It's working now and have passed the W3C validation!! Thanks dude!

    Now, how you do the trick for Windows Media Player video-clip with these crappy EMBED tags I have done on below that didn't pass the validation:

    Code:
    <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="320" height="305" id="solvideo">
      <param name="autoStart" value="true">
      <param name="enabled" value="true">
      <param name="uiMode" value="full">
      <param name="URL" value="/videos/about_us.wmv">
      <param name="mute" value="true">
      <param name="volume" value="0">
      <embed src="/videos/about_us.wmv" width="320" height="305" autostart="true" enabled="true" fullscreen="false" uimode="full" url="/videos/about_us.wmv" mute="true" volume="0"></embed>
    </object>
    Let me know how to do the this trick like you did for Flash? Thanks.

    Lyndon

  4. #4
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Glad the flash part worked, though I am unsure of how to go about embedding WMP using valid markup. I tried a few google searches but without success :'(

  5. #5
    SitePoint Enthusiast Borrow's Avatar
    Join Date
    Jul 2004
    Location
    Australian living in London, UK.
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Ok mate. Does anyone else know how do this for WMP video that would pass the W3C markup validator test?

    I need to see that it will play on any browsers and still pass the W3C markup validator test.

    Hmmm??

  6. #6
    SitePoint Enthusiast Borrow's Avatar
    Join Date
    Jul 2004
    Location
    Australian living in London, UK.
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Knock, knock, knock! Hello? Anyone there to help and answer my question please?

  7. #7
    SitePoint Zealot
    Join Date
    Jun 2005
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just so you know not all of the above code is needed, infact you can validate and 'have work' the following code for .swf;

    Code:
    <object type="application/x-shockwave-flash" data="myfile.swf" width="550px" height="450px">
     <param name="movie" value="myfile.swf" />
    </object>
    Equentity, LLC - Coming Soon

    Have a question? Ask here

  8. #8
    SitePoint Enthusiast Borrow's Avatar
    Join Date
    Jul 2004
    Location
    Australian living in London, UK.
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pauly
    Just so you know not all of the above code is needed, infact you can validate and 'have work' the following code for .swf;

    Code:
    <object type="application/x-shockwave-flash" data="myfile.swf" width="550px" height="450px">
     <param name="movie" value="myfile.swf" />
    </object>
    Yeah, thanks Pauly for that - my Flash part is working now anyway.

    What about the Windows Media Player part as mentioned further above? Do you know?

  9. #9
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pauly
    Just so you know not all of the above code is needed, infact you can validate and 'have work' the following code for .swf;

    Code:
    <object type="application/x-shockwave-flash" data="myfile.swf" width="550px" height="450px">
        <param name="movie" value="myfile.swf" />
       </object>
    It's a good idea to specify alternate content in case the user does not have flash installed.

    Code:
    <object type="application/x-shockwave-flash" data="movie.swf" width="?" height="?">
       <param name="movie" value="movie.swf" />
     <p>You do not have the flash plug-in installed. If you would like to view the flash portions of this site you will need to <a href="http://www.macromedia.com/shockwave/download/" title="Get Flash!">download the flash plug-in</a>.</p>
       </object>
    Thats the only part you removed from my example


Bookmarks

Posting Permissions

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