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: http://websitesasgraphs.waltercedric.com/ 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="http://websitesasgraphs.waltercedric.com/getDataFromURL.php?url=&amp;lt;?php echo $url ?>" />       <strong>         This browser does not have a Java Plug-in.       </strong>       <br />       <a href="http://java.sun.com/products/plugin/downloads/index.html">         Get the latest Java Plug-in here.       </a>  </object> </div>
www.waltercedric.as.graph_thumb 
The source code websiteasgraph.v01.00.00.zip has been changed and is available here: Download now

References

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.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments

Categories

0
Would love your thoughts, please comment.x
()
x