Hi Will.... I've been there. To this point we still ended up with two
seperate tags to get everything working smoothly, though between versions 4
and 6 of Netscape you may get one of them to do what you expect.
----- Original Message -----
From: "Will Holcomb" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 10:27 PM
Subject: [JAVA3D] ot: applet <object> tag
> Does anyone know if it is possible to write an <object> tag conforming to
> the HTML 4 stamdard that IE will recognize?
>
> http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#h-13.3
>
> I am going off of that and I can't manage it. My best guess as to what a
> standards conformant tag would look like would be:
>
> <object
> classid="java:com.xith.java3d.testbed.OverlayTester.class"
> codetype="application/java-archive"
> archive="Overlays.jar"
> width="700" height="550">
> <p>This text is only visible if your browser does not support the
> <object> tag.</p>
> </object>
>
> Anyone know if that is correct? The one for IE has meanings for the
> attributes that somebody just made up I think:
>
> <object
> classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
>
codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Vers
ion=1,2,0,0"
> width="700" height="550">
> <param name="code" value="com.xith.java3d.testbed.OverlayTester" />
> <param name="archive" value="Overlays.jar" />
> <param name="type" value="application/x-java-applet" />
> </object>
>
> (I am using xhtml, that's the reson for the /> at the end of <param>s.)
>
> What is a pain is that the html 4 standard says:
>
> 13.3.1 Rules for rendering objects
> A user agent must interpret an OBJECT element according to the following
> precedence rules:
>
> 1. The user agent must first try to render the object. It should not
> render the element's contents, but it must examine them in case the
> element contains any direct children that are PARAM elements (see
> object initialization) or MAP elements (see client-side image maps).
> 2. If the user agent is not able to render the object for whatever
> reason (configured not to, lack of resources, wrong architecture,
> etc.), it must try to render its contents.
>
> So, since IE doesn't respect the correct <object> tag, I nested the IE
> interpretation inside the correct one. IE should then figure it can't
> render the first and so try and render the second. It doesn't though, it
> tries to render them both and just leaves the one at the top empty but
> still partitions off the size for it.
>
> Honestly I am just getting tired of writing convoluted HTML because the
> makers of user agents can't follow some simple rules. I think I am just
> going to leave the page like it is and tell people that if it doesn't look
> right to go get a browser that works correctly. I bet the thing that will
> most drive M$oft to change their products are market factors. If I as a
> content creator make quality standards compliant content that people
> cannot see because their browser doesn't support the standards then it
> might be a part of the market factor driving changes.
>
> Sorry, I just get riled when my webbrowser can render my PowerPoint
> presentation correctly but not my webpages. =)
>
> On the question of the correct tag to use, both IE and Mozilla seem to
> respect the IE tag even though it is not standards conformant. The plugin
> generates the IE tag and then places an <embed> tag inside the <object>.
> It places it in <comment> tags but that should not be strictly necessary,
> even for IE.
>
> I personally am going to go with the HTML 4 tag and tell people where they
> can get a descent browser on the page. =) All the jars will run from the
> command line anyhow, so I am only inconvenincing people slightly.
>
> Will
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".