Scriptlets' MIME Type

When inserting a scriptlet into an HTML page you also have to specify a particular MIME type. This helps Internet Explorer 4.0 to recognize it as a scriptlet and makes the distinction from ActiveX controls. When IE 4.0 encounters an

<OBJECT>
tag with a MIME type of
text/x-scriptlet
then, among other things, it initializes the
external
object. This allows a scriptlet to work properly.

Internet Explorer 4.0 will support this MIME type on all platforms, from Win32 to Win16 and from Macintosh to Unix.

The above picture has been obtained by removing the

type
attribute from a declaration that correctly embeds a scriptlet into a host Web page.

© 1997 by Wrox Press. All rights reserved.