You are here: applet or object? « HTML « IT news, forums, messages
applet or object?

Posted by JWS on 10/18/07 09:22

This must surely be a FAQ, but Googling hasn't helped much so far.

I am trying to learn Java, because one of my pages needs an
applet. The question is: how to put the applet on the page, in
such a way that the applet works both in Mozilla and IE, *and* the
page still validates as HTML 4.01 strict.

I tried

<p>
<object codetype="application/java"
classid="java:DrawingLines.class"
width="300" height="300">
You should have seen a Java applet that draws lines.
</object>

which is valid html strict, it works in Mozilla (XP and Linux),
but IE7 only shows the fallback text.

If I say

<p>
<applet code="DrawingLines.class" width="300" height="300">
You should have seen a Java applet that draws lines.
</applet>

it works in Mozilla and IE7, but does not validate as html strict.
Is there a better way to do this, or should I just not bother and
be happy with validation as "transitional"?

Jan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация