Hi,
I'm writing a little HTA application to perform some common tasks on our application servers with HTML forms and VBScipt.
I'd like to have one VBScript file that containing all of my functions that are called in the HTML file. Would this also be know as server-side scripting?
All though googling reveals several hits for java script I haven't found anything pertaining to VBScript.
I guess the first question is, does anybody know if this is possible or is it a limitation of VBScript?
Bellow is the test html file.
In this example I am trying to call my function (sngMetric) using onClick= and passing the function the contents of a text box (txtText1). I have seen this done with javaScript.
and here is the vbs file
Any help would be greatly apreciated.
TIA
I'm writing a little HTA application to perform some common tasks on our application servers with HTML forms and VBScipt.
I'd like to have one VBScript file that containing all of my functions that are called in the HTML file. Would this also be know as server-side scripting?
All though googling reveals several hits for java script I haven't found anything pertaining to VBScript.
I guess the first question is, does anybody know if this is possible or is it a limitation of VBScript?
Bellow is the test html file.
In this example I am trying to call my function (sngMetric) using onClick= and passing the function the contents of a text box (txtText1). I have seen this done with javaScript.
Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<script language="VBScript" src="/bin/test.vbs" type="text/VBScript"></script>
<BODY BGCOLOR="white">
Input Inches: <INPUT TYPE="text" NAME="txtText1">
<INPUT TYPE="button" NAME="cmdButton1" VALUE="Show Millimeters" onClick="sngMetric(txtText1.value)">
</BODY>
</HTML>
Code:
Function sngMetric(strInches)
Dim sngInches
sngInches = StrInches
sngMetric = sngInches * 25.4
End Function
Any help would be greatly apreciated.
TIA