Results 1 to 11 of 11

Thread: JavaScript - Validation Function [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Resolved JavaScript - Validation Function [RESOLVED]

    I need to validate a text box in an ASP.NET project and am trying to use JavaScript even though I have never used it before. My task is so simply, I am embarrassed to ask; how do I ensure my string is at least 6 characters?

    Here is my existing code:
    Code:
    <script language="javascript">
    	function PasswordCheck(source, arguments)
    		{
    			if string.length(arguments.value) > 5)
    				arguments.IsValid=true;
    			else
    				arguments.IsValid=false;
    		}
    </script>
    I get an "Object Required" error when it runs.
    Last edited by simonm; Jun 7th, 2005 at 08:33 AM.
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width