Designing Custom Components Using Scriptlets

Can I design custom components using scriptlets?


Yep, that’s what they’re for, actually. Scriptlets encompass a number of technologies. With Microsoft Internet Explorer 4.0, for example, scriptlets were the base technology used for creating DHTML-like components. They used an XML-like architecture to create an instance of a COM object that ran in its own instance of IE. Unfortunately, that is their biggest weakness?in order to create an IE4 scriptlet, you need to instantiate a new instance of the browser for each scriptlet, which proved to be an expensive process at best. Furthermore, scriptlets had only limited information about the environment in which they were hosted, and couldn’t be used for lightweight controls because they were outside of the normal process space (which of course defeats the whole purpose of having a scriptlet).

With Internet Explorer 5.0, scriptlets were replaced with behaviors. A behavior modifies the default behavior of an HTML object (such as a DIV tag), and is considerably more friendly to the Web page environment. With a behavior, you could extend a DIV tag so that it acted like a clock, as an example. In other words, with behaviors, you extend the capabilities of the native HTML page, rather than creating what amounts to an ActiveX object to do the same thing.

Expect behaviors to become a critical part of Microsoft’s Web strategy?with the current IE5 release, they still have a few minor glitches. The calling model for properties, for instance, is still a little nebulous, and multiple instances of a behavior still require separate instantiations. These known issues should be resolved with the next release of IE.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS