Re: Netscape Plug-ins and <OBJECT>

Dave Raggett (dsr@w3.org)
Wed, 17 Sep 1997 09:39:06 -0400 ()


Date: Wed, 17 Sep 1997 09:39:06 -0400 ()
From: Dave Raggett <dsr@w3.org>
To: Rick Darnell <darnell@montana.com>
cc: www-html@w3.org
In-Reply-To: <3.0.3.32.19970916155439.0079f290@mail.montana.com>
Message-ID: <Pine.WNT.3.95.970917092232.-25877E-100000@hazel.hpl.hp.com>
Subject: Re: Netscape Plug-ins and <OBJECT>

On Tue, 16 Sep 1997, Rick Darnell wrote:

> What would the correct syntax be for including a plug-in with the
> new HTML <OBJECT> tag? I'm assuming that it's similar to adding
> images, by using the _data_ attribute to identify the content and
> _type_ to identify the MIME type. Is _codetype_ or _classid_
> needed to help the browser find the plug-in application on the
> user's machine (such as ActiveX controls)? 

Assuming the browser has a dictionary that binds Content types 
to plugins, then in principle, the following would work:

  <object data=foo>
   a picture of foo
  </object>

The above gets the Content type when it downloads the data.

  <object data=foo type="image/gif">
   a picture of foo
  </object>

This one provides in advance that the data is "image/gif"

  <object data=foo width=100 height=60>
   a picture of foo
  </object>

This specifies the with and height for the image. The image
will be scaled if necessary to this size.

You can also provide parameters via the PARAM element in
basically the same way as for APPLET.

Note that current implementations may not yet be capable
of the above examples.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2521 (office) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)