Get form input field value before submit? 
Author Message
 Get form input field value before submit?

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>



Sat, 18 Jan 2003 03:00:00 GMT  
 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>



Sat, 18 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Hidden field in form not retaining it's value after submit

2. form input field initial value truncate after space

3. Pass values from FORM fields to another page without a SUBMIT action

4. Getting values already submitted to submit again

5. Making hidden fields visible based on a form field value

6. Getting/setting character position in an input field

7. change field values on submit

8. Displaying text/input field depending on checkbox value

9. need to feed a text field with values from other input

10. ** Form input field in link **

11. Help: Need form to submit after 9th digit is filled in field

12. Submit the form, how to check if required field is Not empty

 

 
Powered by phpBB® Forum Software