Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: object code=

From: Arthur Wiebe <webmaster@awiebe.com>
Date: Tue, 20 May 2003 18:30:19 -0400
Message-ID: <3ECAAC7A.6030603@awiebe.com>
To: Brian V Bonini <b-bonini@cox.net>, www-html@w3.org

A good XHTML 1.1 valid way for embeding flash/java/etc object is bu 
using a template sort of like this. (This is a minimal way)

<object type="mime-content-type" data="path/to/file.class">
<param src="path/to/file.class" />
</object>

That will work on IE, Netscape and Mozilla. Use the data attribute not code.

Brian V Bonini wrote:

>What is the proper replacement for the code attribute in the object element for xhtml1.1 ?
>
>Trying to get this to validate but the validator keeps complaining about
>the code element:
>
>Line 60, column 98:  there is no attribute "code" (explain...). 
>          ...while the application loads..." code="WebCam_Viewer.class" width="352" height
>
>  58:    <td valign="middle">
>  59:     <p style="text-align:center">
>  60:     <object codetype="application/java" standby="Please wait while the application loads..." code="WebCam_Viewer.class" width="352" height="308">
>  61:     <p>If you can see this text, then your browser apparently can't run the necessary Java application.</p>
>  62:     <param name="COLOR" value="#FFFFFF" />
>  63:     <param name="IMAGE" value="capture0.jpg" />
>  64:     </object>
>  65:     </p><object codetype="application/java" standby="Please wait while the application loads..." code="WebCam_Viewer.class" width="352" height="308">
>  61:     <p>If you can see this text, then your browser apparently can't run the necessary Java application.</p>
>  62:     <param name="COLOR" value="#FFFFFF" />
>  63:     <param name="IMAGE" value="capture0.jpg" />
>  64:     </object>
>
>
>  
>
Received on Tuesday, 20 May 2003 18:30:24 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.