• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Quick (X)HTML Q  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just read on www.w3schools.org that <applet> tag for applets was deprecated in HTML 4.01. and the applet element is not supported in XHTML 1.0 Strict DTD.
How do I go about putting a Java applet into a webpage if the <applet> tag is deprecated/not supported?
Many thanks,
Jon
 
Jon Brasted
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"However, since the few browsers that support OBJECT do so with significant bugs, APPLET is currently a more reliable method of embedding Java applets." - http://www.htmlhelp.com/reference/html40/special/applet.html
Hmmm... what do most people use?
 
Jon Brasted
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there some easy HTML that will make the applet area width and height get AUTOMATICALLY set? I keep getting the numbers wrong in the HTML and the applet is not always fully shown.
(maybe I just need to set it properly? )
Thanks.
 
Author
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jon, This post will probably be moved to another fourm,

Most college level books are starting to use XHTML. However, as others do say HTML is still commonplace and will take awhile to covert to XHTML and eventually XML.
Here the equivalent code tags:
<applet code="WelcomeApplet.class" width=�250� height=�200�>
</applet>
same as:
<object classid="java:WelcomeApplet.class" width=�250�
height=�200�></object>

Should work. I teach my java students both ways.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!