JAG

James Griffiths Ltd

Windows Script Component example

Information



PDA Version

This example uses a Windows Script Component (WSC) to open the database and return the total sales for the selected category.

Select a category


This example returns the top selling products. The component's function returns an HTML table with the appropriate values filled in.

To see the top product sales, select the 'Top' number


Script Components

Script components are lightweight components that can be easily created and used on the server, or on the client.

They can be registered on the server, in a similar way to dll's, or they can be called by specifying their path, either physical or virtual.

Script components can be thought of as being analogous to class modules in VB, or to com components. They are ideal to use as prototypes of dll's.

Copyright © James Griffiths Ltd 2000-2005