lunargirrl
Programmer
I am trying to validate a textbox in my page. It cant contains less than 7 characters.
This is what I am doing:
<head>
<script language="JavaScript">
function PassLength( oSrc, txtPass ){ var retValue = true; if(txtPass.length > 7){ retValue = false;} return retValue } </script>
</head>
In my control:
Display = Dynamic
Error Message = You must type more than 7 characters.
ClientValidationFunction = PassLength
ControltoValidate = txtPass
It doesnt work, I was searching more in the net and found in some sites 2 functions, one for the server and one for the client? I didnt understand very well. Could someone give me tips and help about this subject?
Thanks
Gis.
This is what I am doing:
<head>
<script language="JavaScript">
function PassLength( oSrc, txtPass ){ var retValue = true; if(txtPass.length > 7){ retValue = false;} return retValue } </script>
</head>
In my control:
Display = Dynamic
Error Message = You must type more than 7 characters.
ClientValidationFunction = PassLength
ControltoValidate = txtPass
It doesnt work, I was searching more in the net and found in some sites 2 functions, one for the server and one for the client? I didnt understand very well. Could someone give me tips and help about this subject?
Thanks
Gis.