[ann] yav 2.0 available (javascript form validator)

F

federico

Hi all,
I have released yav 2.0, a javascript tool on SourceForge with LGPL
license. You can use it in both commercial and open-source projects,
it's completely free:

http://yav.sourceforge.net

Comments and suggests are welcome. I'm working to make yav really
useful!

Thank's.
Federico
 
P

Peter Michaux

Hi all,
I have released yav 2.0, a javascript tool on SourceForge with LGPL
license. You can use it in both commercial and open-source projects,
it's completely free:

http://yav.sourceforge.net

Comments and suggests are welcome.

I looked quickly and see the following

<script>
var rules=new Array();
rules[0]='username|required';
rules[1]='password|minlength|8';
... and so forth ...
</script>

Does that mean I have to keep the order of my form field inputs in
sync with the rules array? That seems like a tall order when the HTML
authors start playing with the form's HTML.

Each form element has a name attribute. Could you have "rules" be an
object with properties where the property and form element's name
match?

----

Personally I like using a class attribute system and think that it is
semantic. For example,

<input class="val_username val_required"
<input class="val_minlength_8 val_password"

----

Have you played with validating a file form element onblur? I found
there is a problem (I think it was IE) because if the cursor is in the
text part of the file input and I click the "browse" button then the
validation error is shown. This may also be apparent when tabbing
through the form elements.

Peter
 
G

Gregor Kofler

federico meinte:
Hi all,
I have released yav 2.0, a javascript tool on SourceForge with LGPL
license. You can use it in both commercial and open-source projects,
it's completely free:

http://yav.sourceforge.net

Comments and suggests are welcome. I'm working to make yav really
useful!

Your email check is faulty. It rules out many valid emails (I suppose
you check for a maximum of four letter for the TLD).

Gregor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top