The Microsoft Scriptlet Wizard

Bundled with the package you'll find a wizard that lets you create Server Scriptlets as well as DHTML scriptlets. It consists of a few basic steps through which you enter general information about the component, and the list of its properties and methods. The next figure shows its first screenshot.

Here you specify the name and the path of the scriptlet, as well as its ProgID and version number. Next, you will be required to indicate which kind of component to generate and the language you'd like to use. Even if it's possible to write code in more than one script language, mixing, say VBScript and JScript, to avoid performance slow down, you should decide once and for all on one language, and then use it throughout that page.

To list the required properties and methods the wizard offers an expanding listbox where you can enter the name of the property, its default value and even read/write, read-only or write-only.

For the methods you need to indicate their names, and list the parameters. Each parameter name must be separated with a comma. For example, if you have a method called Say that takes in input a string called text and a number called numRepeat then the string to enter is:

text, numRepeat

Of course, you can leave it blank if that method requires no argument. The final step displays a summary of your choices.

If you choose to create a DHTML Scriptlet instead of a Server Scriptlet, then there's a further step where you can check the standard events you want the component to forward. This doesn't make sense for Server Scriptlets since they have no user interface and only interact with the user through methods and properties.

© 1997 by Wrox Press. All rights reserved.