473,394 Members | 1,642 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,394 software developers and data experts.

applet vs. object. vs embed?

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?

Aug 14 '06 #1
4 10604
yawnmoth wrote:
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?
EMBED has never been part of any HTML standard, so should be avoided, but
may be of some use supporting Netscape 4.x and similarly antiquated
browsers.

OBJECT is the standards-compliant version of EMBED. It also includes
support for fully-marked-up fall-back content. e.g.

<object data=MyMovie.mpeg type="video/mpeg" height=120 width=180>
<p>Except from the Quux Amateur Dramatics Society
production of <i>Macbeth</i>:</p>
<p><cite>Lady Macbeth:</citeI heard the owl scream and
the crickets cry.<br>Did not you speak?</p>
<p><cite>Macbeth:</citeWhen?</p>
<p><cite>Lady Macbeth:</citeNow.</p>
<p><cite>Macbeth:</citeAs I descended?</p>
<p><cite>Lady Macbeth:</citeAy.</p>
<p><cite>Macbeth:</citeHark!</p>
<p>(Download <a href=MyMovie.mpeg>this scene as an
MPEG video</a>.)</p>
</object>

APPLET is a more special-purpose version of OBJECT. It can only be used to
embed one particular type of object: Java applets. Everything APPLET can
do, OBJECT can do better. But again, APPLET may be better supported in a
few old browsers.

IMG is another element supposedly made obsolete by OBJECT, but most
browsers seem to have fuller for IMG than OBJECT.

It's also worth noting that there is a fifth method of embedding things:
ActiveX. This will only work in Internet Explorer, plus Netscape 7.x for
Windows. It uses a bastardised version of the OBJECT element, recognisable
by long, opaque "classid" strings.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Aug 14 '06 #2

Toby Inkster wrote:
yawnmoth wrote:

<snip>

APPLET is a more special-purpose version of OBJECT. It can only be used to
embed one particular type of object: Java applets. Everything APPLET can
do, OBJECT can do better. But again, APPLET may be better supported in a
few old browsers.
In all the examples of applet and object at the following URL, the
applet tag seems to be more cross-browser compliant than the java tag,
when applets are concerned:

http://ww2.cs.fsu.edu/~steele/XHTML/appletObject.html

So if cross-browser compliancy isn't one of the advantages of the
object tag, what are some of its advantages?

Aug 15 '06 #3
yawnmoth wrote:
In all the examples of applet and object at the following URL, the
applet tag seems to be more cross-browser compliant than the java tag,
^^^^
Assuming that you meant "object" there.
So if cross-browser compliancy isn't one of the advantages of the
object tag, what are some of its advantages?
OBJECT and APPLET do different things: APPLET is used to embed a Java
applet; OBJECT is used to embed anything you want!

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Aug 15 '06 #4

Toby Inkster wrote:
yawnmoth wrote:
In all the examples of applet and object at the following URL, the
applet tag seems to be more cross-browser compliant than the java tag,
^^^^
Assuming that you meant "object" there.
I did, indeed :)
So if cross-browser compliancy isn't one of the advantages of the
object tag, what are some of its advantages?

OBJECT and APPLET do different things: APPLET is used to embed a Java
applet; OBJECT is used to embed anything you want!
So if you were trying, specifically, to embed applets, might applet be
better than object? Your "everything APPLET can do, OBJECT can do
better" would make me think not, but for applets, in particular, I
can't see any advantages OBJECT would have over APPLET...

Aug 15 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Wai Man Chung | last post by:
Dear all, I have an asp page which upon opening a field will be set to be in focus so that user can type in data without the need to use the mouse to click on the field. However, after I add...
0
by: johkar | last post by:
We have an application which creates PDF on the fly and is embedded in an HTML page. The PDF always named the same and is cached and doesn't show new PDFs when asked. Is there any way to prevent...
1
by: M. Magistri | last post by:
Hi all! Why doesn't the following code load my applet under WinXP with Internet Explorer 6? <SCRIPT language="javascript" type="text/javascript"> <!-- if (getBrowser()=="IE"){...
23
by: Andrew Thompson | last post by:
This is intended to fix a long standing (cough)Java(cough) problem with which I'm sure some of you will be familiar. Sun recommends using the <OBJECT>/<EMBED> elements to cater for Java...
2
by: zheng | last post by:
ÇçÌì I have a word document and it has a picture object, I want save the picture object as other single picture file by C# program. I have a idea, by clipboard, copy the picture to clipboard, and...
0
by: andchoi | last post by:
Hello all, I am wondering whether there is a public domain control out there which helps people to automate the process of creating the correct classid and codebase in within an <object> tag...
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...
5
by: Lambuz | last post by:
First of all, is it possible usign .NET remoting feature inside a .NET applet loaded into a tag object inside an HTML page ? <OBJECT id="myID" height="150" width="300"...
2
by: sck10 | last post by:
Hello, I am trying to convert an applet to an object. The applet works, but I can't get the <objectto work and I'm not getting any error codes, just a square box with an "x" in it. Any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
0
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...

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.