This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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.
 
Always! Wait. Never. Shut up. Look at this tiny ad.
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!