473,796 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
-------------------------------------------------------------

Jul 20 '05 #1
3 5221
Tony Sutton wrote:
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>


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.javas cript 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
3116
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, which needs a Quicktime plugin, and one Java applet. He's also kindly supplied me with sample HTML code for each. The code looks like this (simplified):
11
4499
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 that I've got confused. For example, what should be put into classid and codebase attributes of the OBJECT now embedding the EMBED tag?
2
5429
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 AUTOSTART="false"... In the good old days of Netscape 3 or so, just <A HREF="BWV659.mid">Musique</A> would open a small console in the active page itself, based on the plug-in selected by the user. Today, it opens
8
3084
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, they use the <embed> tag and are therefore not compliant. I've found a couple of work arounds for Flash files, but none for ..WMV files. The client does not want to files to be transferred to a different format. Does anyone have the compliant code...
1
2991
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 EMBED tag so I'm going to use some code to correct it but I can't tell which tag is responsible for the display. Andrew Poulos
4
10630
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
8093
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 did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
1
2225
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 platforms. First one (Win2003,IIS) dim var1 var1 = "<object>"_ & "<param name='movie' value='st1.mov'>"_ & "<embed src='st1.mov' width='725' height='150'>"_ & "</embed>"_
1
2587
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' height='150'> </embed> </object>
0
10455
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10006
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7547
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.