Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Quick (X)HTML Q

 
Jon Brasted
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.
 
James Chegwidden
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic