My question is: How do you call a vbscript function that is inside a .vbs file in a web page?
here is where I'm including the .vbs file:
<html> <head> <title></title> <script type="text/javascript" src="Java-script/sorttable.js"></script> <script type="text/vbscript" src="Vbscript/MakeTable.vbs"></script> <link rel="Stylesheet" type="text/css" href="Css/File.css" /> </head>
The file is found when attempting to make the call, however it gives a Type Mismatch: MakeTable when i run the webpage
<% MakeTable "HistoryTable",rs2,False,"","TitleText" %>
Here is the function definition i was given:
public function MakeTable(tableClass,recordSet,ShowHeaders,FriendlyHeaderNames,TableTitle) public function MakeTable(String,recordset,Boolean,Array,String)
and here is the error:
Microsoft VBScript runtime
Number: (0x800A000D)
Description: Type mismatch: 'MakeTable'
RemoteIP: <removed>
ServerIP: <removed>
I have tried using EXECUTE, tried renaming the file to see if possibly that was causing an error. Nothing is working. I'm thinking that its just not possible to call a function from vbs files like you can from .js files