Select Page

How to insert a java applet in a web page

Valid HTML 4.01 Frameset opera safari chrome firefox ie

I did learn a lot today while trying to validating my new sub domain: I found a huge number of examples using the tag <applet> which has been deprecated and create errors and warning in W3C validation engine. But no example using the  the new HTML <object> tag.  Hence I decide to publish this small post.

The following page are now XHTM 1.0

While this one is

Here is the code to insert a java applet into an XHTML 1.0 Strict web page

<div> <object classid="java:mkv_htmlgraph.class"           type="application/x-java-applet"         archive="mkv_htmlgraph.jar"         width="600" height="600">     <param name="code" value="mkv_htmlgraph" />     <param name="archive" value="mkv_htmlgraph.jar" />      <param name="image" value="loading.gif" />     <param name="boxmessage" value="Loading Processing software..." />     <param name="boxbgcolor" value="#FFFFFF" />     <param name="urlFromForm" value=";lt;?php echo $url ?>" />       <strong>         This browser does not have a Java Plug-in.       </strong>       <br />       <a href="">         Get the latest Java Plug-in here.       </a>  </object> </div> 
The source code has been changed and is available here: Download now


By the way, I discover huge issues in IE8, less in IE7 with my homepage, none in Opera or Firefox. And since my homepage is currently not valid, I will correct everything to make it XHTML 1.0 compliant today.

About The Author

Cédric Walter

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.