473,404 Members | 2,174 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,404 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 5196
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'...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.