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 6 of 6
  1. #1
    New Coder
    Join Date
    May 2006
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs down -FIXED- Embed Tag

    W3 dosn't like the <embed> tag. But i used it with all proper formats!
    why dosn't it like that? and how do i fix it?

    -edit-
    i fixed it by using javascript :-) FIXED!!!
    Last edited by JustinMs66; 05-28-2007 at 01:44 AM.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Can you show us the javascript you are using? The embed tag was never part of the standard btw.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,633
    Thanks
    0
    Thanked 649 Times in 639 Posts
    There is no need to use the proprietary embed tag at all. You may need different object tags for IE and other browsers but you can nest one inside the other.

    Adding invalid HTML markup using JavaScript doesn't make the HTML valid, it just means that you have hidden invalid code from the validator and that the final code still wouldn't validate.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Quote Originally Posted by felgall View Post
    There is no need to use the proprietary embed tag at all. You may need different object tags for IE and other browsers but you can nest one inside the other.
    I disagree, especially for embedding Flash content. This post by the author of SWFObject puts it quite well, I think: http://blog.deconcept.com/2006/08/16...rds-yes-again/

    IMO, this is a case of compliancy to web standards overlooking the reality of browser capability at the moment.

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,633
    Thanks
    0
    Thanked 649 Times in 639 Posts
    See http://alistapart.com/articles/byebyeembed for a version that works on all browsers released in the last 10 years and which does not require an embed tag. You just need one object tag for IE and a second object tag foer standard compliant browsers.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #6
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Yes, but the article I linked to addressed several areas where using strictly object runs into issues:

    • “Click to activate” in IE. The only way to get around this is to use Javacript.
    • No plugin detection. If I have Flash Player 6 installed, and I visit a site that uses Flash 9 content, my player will go ahead and try to play that swf anyway. I could end up seeing half of the content, or broken content, or who knows what. Do you really want to show your users broken content?
    • Issues in older Safari versions: Safari pre 1.2 will completely ignore param tags, which are often used to pass information to the plugin. This means broken content for your users.
    • Support for the object tag varies widely from browser to browser. Do you think that just because you work around all the quirks in the 3 main browsers today, it will still work when the next new browser is released?
    • Using Flash Satay or other ‘object only’ methods will not stream your Flash movies to the user - this means extra work for you in creating a ‘loader’ swf
    • JAWS will ignore it.
    I'm all for following w3c recommendations but I still don't think browser support for the object tag is stable enough to recommend using object only.


  •  

    Posting Permissions

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