Projects / jsVal

jsVal

jsVal is a JavaScript program used for validating HTML Forms on the client side. This allows HTML forms to be validated in the browser without having to send a request to a sever (PHP, ASP, Perl...). jsVals saves you from having to write complicated validations on server side as well as helping you avoid having to rebuild and repopulate the form when validation fails. The advantage versus other client side HTML form validators is the ease of use and flexibility you'll gain. jsVal fits the needs for most HTML Forms, and can be also easily be integrated with existing HTML Forms.

Tags
Licenses
Operating Systems
Implementation

RSS Recent releases

  •  20 Mar 2006 00:43

Release Notes: A bug in which the last character in a regular expression is consumed was fixed. The email regular expression was improved so German umlaut-domains now work.

  •  15 Apr 2005 10:01

Release Notes: This release fixes a bug with callback handling and one with CSS error tagging.

  •  08 Apr 2005 05:50

No changes have been submitted for this release.

  •  06 Apr 2005 07:50

Release Notes: Some CSS related patches were implemented.

No changes have been submitted for this release.

RSS Recent comments

26 Apr 2006 19:45 qxo

Re: tried demo version

> Can you provide me more details on

> what's not working?

> What Browser do you use?

>

> Timo

>

>

> % and it failed to catch simple errors;

> % and flagged things

> % that were not errors

>

>

>

see below code JSVAL_RX_EMAIL has charset encoding problem!!!

function _checkRegExp(regx,value){

switch(regx){

case "JSVAL_RX_EMAIL":

return((/^[a-zA-Z溥闹躚+([\.-]?[a-zA-Z溥闹躚+)*@[a-zA-Z溥闹躚+([\.-]?[a-zA-Z溥闹躚+)*(\.\w{2,5})+$/).test(value));

case "JSVAL_RX_TEL":

return((/^1?[\-]?\(?\d{3}\)?[\-]?\d{3}[\-]?\d{4}$/).test(value));

case "JSVAL_RX_PC":

return((/^[a-z]\d[a-z]?\d[a-z]\d$/i).test(value));

case "JSVAL_RX_ZIP":

return((/^\d{5}$/).test(value));

case "JSVAL_RX_MONEY":

return((/^\d+([\.]\d\d)?$/).test(value));

case "JSVAL_RX_CREDITCARD":

return(!isNaN(value));

case "JSVAL_RX_POSTALZIP":

if(value.length==6||value.length==7)

return((/^[a-zA-Z]\d[a-zA-Z] ?\d[a-zA-Z]\d$/).test(value));

if(value.length==5||value.length==10)

return((/^\d{5}(\-\d{4})?$/).test(value));

break;

default:

return(regx.test(value));

};

};

19 Mar 2006 23:51 thaberkern

Re: tried demo version
Can you provide me more details on what's not working?

What Browser do you use?

Timo

> and it failed to catch simple errors;

> and flagged things

> that were not errors

16 Mar 2006 16:06 cevans7 Thumbs down

tried demo version
and it failed to catch simple errors; and flagged things

that were not errors

Screenshot

Project Spotlight

oobash

An oo-style framework for bash 4 written in bash.

Screenshot

Project Spotlight

SmartGit

A GUI client for the Git DVCS.