473,237 Members | 1,288 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,237 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 5187
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
11
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold the content of EMBED src attribute, but after...
2
by: François de Dardel | last post by:
Please don't scream that EMBED is evil ! What I am doing is <EMBED SRC="BWV659.mid" AUTOSTART="false" LOOP="TRUE" CONTROLS="SMALLCONSOLE" WIDTH="50" HEIGHT="15" TITLE="BWV 659"> Note the...
8
by: Cowan Services | last post by:
My apologies if this has been covered before, but I was unable to download messages before 11/23/05. I am trying to bring some HTML pages w/embedded .WMV files into W3C compliance. Right now,...
1
by: Andrew Poulos | last post by:
With "normal" SWF HTML there's an EMBED tag nested within an OBJECT tag. How can I check which tag is actually displaying the SWF? I'm using CSS on them and the style on the OBJECT affects the...
4
by: yawnmoth | last post by:
I'm currious - how do applet, object, and embed compare to one another? They seem to me to mostly do the same thing, so why would one chose one over another?
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
1
by: movieking81 | last post by:
This really isn't an ASP question, but the code is ASP so feel free to move this to the right place if necessary. I have two ASP pages with some embed code on them on two different hosting...
1
by: movieking81 | last post by:
I have some html pages with some embed code on them on two different hosting platforms. First one (Win2003,IIS) <object> <param name='movie' value='st1.mov'> <embed src='st1.mov' width='725'...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.