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

Recent releases

  •  20 Mar 2006 08: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 17:01

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

      •  08 Apr 2005 12:50

        No changes have been submitted for this release.

        •  06 Apr 2005 14:50

          Release Notes: Some CSS related patches were implemented.

          •  05 Apr 2005 13:47

            No changes have been submitted for this release.

            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

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

            that were not errors

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.