This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "<applet> deprecated ?!" Watch "<applet> deprecated ?!" New topic
Author

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


OCPJP 6
Mark Waes
Greenhorn

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


Thanks

M
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
Marshal

Joined: Mar 22, 2005
Posts: 41057
    
  43
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: <applet> deprecated ?!
 
Similar Threads
Applet Security Manager
BasicsDemo error message
Applets and Applications
Is java safe..??
Html tag