471,851 Members | 1,240 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,851 software developers and data experts.

Embed and Object

I have this following code in my html file:

<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
codebase="http://download.macromedia.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="http://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="http://www.macromedia.com/go/getflashpla
^2.. Line 112, column 39: there is no attribute
"pluginspage" (explain...).
<embed src="steal6.dcr"
pluginspage="http://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.
-------------------------------------------------------------

Jul 20 '05 #1
3 5114
Tony Sutton wrote:
I have this following code in my html file:

<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
codebase="http://download.macromedia.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="http://www.macromedia.com/go/getflashplayer" width="320"
height="320">
</embed>
</object>


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/>.
Jul 20 '05 #2
On Sun, 05 Oct 2003 05:33:35 -0400, Keith Bowes <do****@spam.me>
wrote:

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.


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.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3
"Keith Bowes" <do****@spam.me> wrote in message
news:1065346969.85213@rh9cache...

Full answer:
<URL:http://alistapart.com/stories/flashsatay/>.


That's useful - thanks!

--

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

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Wolfgang Schwanke | last post: by
11 posts views Thread by Anna | last post: by
2 posts views Thread by François de Dardel | last post: by
8 posts views Thread by Cowan Services | last post: by
1 post views Thread by Andrew Poulos | last post: by
4 posts views Thread by yawnmoth | last post: by
1 post views Thread by movieking81 | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.