[thelist] XHTML <applet> vs <object>
Aleem Bawany
aleem.bawany at utoronto.ca
Tue Feb 4 17:43:00 CST 2003
I am using XHTML 1 String and ran into some problems validating the
following applet code (a whole bunch of questions follow):
<applet
code="thinlet.AppletLauncher"
archive="voip.jar"
width="467"
height="400"
style="clear: both">
<param name="class" value="thinlet.examples.voip.Voip" />
</applet>
so i replaced <applet> with <object> but the "object" tag
does not support the "code" attribute.
I replace "code" with "data" but that failed to render the applet.
I added the attribute: type="application/x-java-applet" since
it's a Java applet, but it still failed to load.
How would I convert the above applet code to object code so it
will validate? Are there any pro/cons to using applet vs. object? Is
object backward compatible? I think I read XHTML 1.1 reverted back to
applet and abandoned object altogether, is that true?
If I do decide to use the applet code (even though it doesn't validate
as valid XHTML 1.0 String) does it break the page in any browsers or are
there any drawbacks I should be aware of (other than the page not
validating with W3, which I is not a problem for me as long as it works
and is backward compatible).
Thanks :)
aleem
[ http://members.evolt.org/aleem/ ]
More information about the thelist
mailing list