
Get form input field value before submit?
You've defined vbFunction() as server side code and are trying to call it from client side code, an
impossible combination...
On the server side, client code is just so much text being sent to the browser. On the client side,
the server side code simply doesn't exist.
--
Michael Harris
MVP Scripting
How to retrieve value of the input field using just VBScript function
on the same page
without form submition. ( I know ho do it in javascript)
For example:
<%
Function vbfunction()
Dim hiddenfield_value
hiddenfield_value = form(0).hiddenfield.Value '<== This is the
statement I'm looking for
response.write hiddenfield_value
End Function
%>
<form name = "SomeForm" >
<INPUT NAME="hiddenfield" type="hidden" SIZE=40 >
</form>
when click here I want to print value from the hiddenfiled <br>
<A HREF="#" onclick="vbscript: vbfunction()"> The value of the hidden
field :</a>