Click to See Complete Forum and Search --> : How Can I Design a Class with Java Script ?


Awei Ken
August 25th, 2000, 04:19 AM
In Visual InterDev ,Can Vb Script Design A Class? And How to Design A Class with Java Script? How to load A Com+ in a asp file with VB Script?
Thank you?

soar
August 25th, 2000, 11:58 AM
If I want to create a class with scripts, I'll simply create a scriptlet that exposes some public functions. You can do this with either VBScript or JavaScript.

But, go to your Project Explorer on Visual InterDev and right click your project name.
Choose Add-->Style Sheet

After adding the Style Sheet page, on the left pane right click the body tag. Here, you can insert a new style class.

This is how to load a COM server to your ASP with VBScript. You may have to put your COM.dll in a package first.

And also, in your COM project references add a reference to MS ASP
<%
Dim objCOM
Dim returnValue
set objCOM = CreateObject("projName.clsName")
returnValue = objCOM.getCOMfxn(parametersGoHere)

soar
August 25th, 2000, 12:03 PM
Dim objCOM
Dim returnValue
set objCOM = CreateObject("projName.clsName")
returnValue = objCOM.getCOMfxn(parametersGoHere)