wood burning stoves 2.0*
The moose likes Applets and the fly likes <applet> deprecated ?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "<applet> deprecated ?!" Watch "<applet> deprecated ?!" New topic

<applet> deprecated ?!

Vinoth Kumar Kannan
Ranch Hand

Joined: Aug 19, 2009
Posts: 276

are applets still used?
i recently discovered that the <applet> tag is depricated..doesnt that mean applets are not used widely nowadays?
ajax can do something like an applet over a specific area in the browser without refreshes,right?
then why do we need applets specifically?

Mark Waes

Joined: Aug 06, 2008
Posts: 21
The <applet> tag was deprecated in favour of the <object> tag which is supposed to do the same thing while being more flexible for future technologies and other objects other than applets.

My understanding is that the <applet> tag tends to be implemented better on a wide range of browsers (particularly older ones), while the <object> tag is slowly being correctly implemented by the browser vendors.

This might be useful:
http://www.w3schools.com/TAGS/tag_object.asp wrote:
The <object> tag is used to include objects such as images, audio, videos, Java applets, ActiveX, PDF, and Flash.

The object element was intended to replace the img and applet elements. However, because of bugs and a lack of browser support this has not happened.

The object support in browsers depend on the object type. Unfortunately, the major browsers use different codes to load the same object type.

Luckily, the object element provides a solution. If the object element is not displayed, the code between the <object> and </object> tags will be executed. This way we can have several nested object elements (one for each browser).


Vinoth Kumar Kannan
Ranch Hand

Joined: Aug 19, 2009
Posts: 276

<object> tag seems good...but how to use it in different contexts(applets,videos..etc)?

what about AJAX as a replacement to applets..?
both refreshes only particular part of a page!!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42277
My impression matches Mark's - "applet" is preferable to "object" and "embed", neither of which is as widely supported.

Ping & DNS - my free Android networking tools app
I agree. Here's the link: http://aspose.com/file-tools
subject: <applet> deprecated ?!