File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 39551
    
  27
My impression matches Mark's - "applet" is preferable to "object" and "embed", neither of which is as widely supported.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <applet> deprecated ?!
 
Similar Threads
Is java safe..??
Applet Security Manager
BasicsDemo error message
Html tag
Applets and Applications