I am creating a program to calculate sum of 2 digits entered by the user in text fields in Front Page. In JAVA NetBeans .getText() method is used to extract the text from the text fields. Which method is used to do the same in Front Page. I am using VBScript code in Front Page. Kindly help with a sample code. Thanks in advance :)
Asked
Active
Viewed 5,551 times
1 Answers
0
Something like this should get the field value. I think? Didn't test. You should be able to cut and paste in Front Page to validate.
<HTML>
<HEAD><TITLE>sample xyz</TITLE></HEAD>
<SCRIPT Language = "VBScript">
<!--
Sub getIt_OnClick()
Dim val_myField
val_myField = myField.value
MsgBox "field value is " & val_myField
End Sub
-->
</SCRIPT>
<BODY>
<BR>
some field: <INPUT Type="Text" Name="myField" Value="100000"><BR>
<INPUT Type="Button" Name="getIt" Value="myValue">
</BODY>
</HTML>

Ekkehard.Horner
- 38,498
- 2
- 45
- 96

Bruce Allen
- 81
- 5
-
testing would have caught the missing `val_`. – Ekkehard.Horner Mar 31 '15 at 07:53
-
ah yes my bad. was just editing it incorrectly while trying to find something I could validate html vbs in, but looks like you took care of it. – Bruce Allen Apr 03 '15 at 05:44