This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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?
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:
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).