By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,742 Members | 1,570 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,742 IT Pros & Developers. It's quick & easy.

Embed and Object

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
"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.