Embed and Object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Sutton

    Embed and Object

    I have this following code in my html file:

    <object classid="clsid: 166B1BCA-3F9C-11CF-8075-444553540000"
    codebase="http://download.macrom edia.com/pub/shockwave/cabs/director/sw.cab#
    version=7,0,0,0 " width="320" height="320">
    <param name="src" value="file.dcr " />
    <embed src="file.dcr"
    pluginspage="ht tp://www.macromedia. com/go/getflashplayer" width="320"
    height="320">
    </embed>
    </object>

    on XHTML 1.0 Transitional and it spits out wiht this error:

    1.. Line 112, column 14: there is no attribute "src" (explain...).
    <embed src="steal6.dcr "
    pluginspage="ht tp://www.macromedia. com/go/getflashpla
    ^2.. Line 112, column 39: there is no attribute
    "pluginspag e" (explain...).
    <embed src="steal6.dcr "
    pluginspage="ht tp://www.macromedia. com/go/getflashpla
    ^3.. Line 112, column 91: there is
    no attribute "width" (explain...).
    ...romedia.com/go/getflashplayer" width="320" height="320"></embed>
    ^4.. Line 112, column 104: there
    is no attribute "height" (explain...).
    ...o/getflashplayer" width="320" height="320"></embed>
    ^5.. Line 112, column 109: element
    "embed" undefined (explain...).
    ...flashplayer" width="320" height="320"></embed>
    I have had a look at W3schools and from what I can see, <embed> is no longer
    supported, correct? If so, what should I use? <object> ?

    Thanks,

    --

    - Tony Sutton
    - http://www.hyperboard.co.uk - The Biggest Message Board!
    -------------------------------------------------------------
    I love cooking my dogs and leaving out commas.
    -------------------------------------------------------------



  • Keith Bowes

    #2
    Re: Embed and Object

    Tony Sutton wrote:[color=blue]
    > I have this following code in my html file:
    >
    > <object classid="clsid: 166B1BCA-3F9C-11CF-8075-444553540000"
    > codebase="http://download.macrom edia.com/pub/shockwave/cabs/director/sw.cab#
    > version=7,0,0,0 " width="320" height="320">
    > <param name="src" value="file.dcr " />
    > <embed src="file.dcr"
    > pluginspage="ht tp://www.macromedia. com/go/getflashplayer" width="320"
    > height="320">
    > </embed>
    > </object>[/color]

    Man, isn't this in the FAQ yet? Short answer: don't use <embed>. Use
    <object data="file.dcr" > and let the browser retrieve the proper plug-in
    for the MIME type. Full answer:
    <URL:http://alistapart.com/stories/flashsatay/>.


    Comment

    • Jim Ley

      #3
      Re: Embed and Object

      On Sun, 05 Oct 2003 05:33:35 -0400, Keith Bowes <do.not@spam.me >
      wrote:

      [color=blue]
      >Man, isn't this in the FAQ yet? Short answer: don't use <embed>. Use
      ><object data="file.dcr" > and let the browser retrieve the proper plug-in
      >for the MIME type.[/color]

      Okay, I want to embed an HTML document into another, OBJECT is correct
      for XHTML, I do this - when a user activates a hyperlink, I want just
      the OBJECT "window" to navigate to the new url, like it currently does
      with the not in XHTML strict IFRAME. However when including flash or
      SVG content I want the images to navigate the parent document just as
      they currently do with embed.

      I seem to have missed how to achieve the two different uses that
      embed/iframe were put to in the single element object - indeed it
      seems that even implementors haven't been consistent and do different
      things depending on the content of the linked resource - surely that
      isn't correct, and how can we do anything with such an unpredictable
      method.

      I'm not saying use embed, but object is far from usefully defined to
      be used either.

      Jim.
      --
      comp.lang.javas cript FAQ - http://jibbering.com/faq/

      Comment

      • Tony Sutton

        #4
        Re: Embed and Object

        "Keith Bowes" <do.not@spam.me > wrote in message
        news:1065346969 .85213@rh9cache ...[color=blue]
        >
        > Full answer:
        > <URL:http://alistapart.com/stories/flashsatay/>.
        >[/color]

        That's useful - thanks!

        --

        - Tony Sutton
        - http://www.hyperboard.co.uk - The Biggest Message Board!
        -------------------------------------------------------------
        A hardboiled egg is hard to beat..
        -------------------------------------------------------------



        Comment

        Working...