vikasbhagwagar
09-13-2006, 01:13 PM
Hello friends,
I have developed an open source "Generic JavaScript Validator"
https://sourceforge.net/projects/js-validator/ (https://sourceforge.net/projects/js-validator/)
I am using some extra form's element like require="yes|no"
pattern = "^regular expression$"
authtype=_email|_zip|_digits|_date|... and much more
errormsg="User's own error message"
Code generator is also designed by me... which generates some code like this...
<input type="text" name="email" required="yes" authtype="_email" errormsg="Please Enter Proper Email" />
Here ...
My validator traverse DOM (any number's of forms) & doing following...
require="yes" => dont allow field empty
authtype="_email" => Match entered email with standard pattern /^[\w]+(\.[\w]+)*@([\w\-]+\.)+[a-zA-Z]{2,7}$/
errormsg="Please Enter Proper Email" it will alert, the msg "Please Enter Proper Email"
I need suggestions, releted to web forms 2
"http://www.w3.org/TR/2006/WD-web-forms-2-20060821/"
According to Web form 2 standards it also uses pattern,require etc attributes of form's elements... So, what are the chances of acceptation of Web forms 2 by I.E. & Firefox in recent future...? So, that i can make my script compitible with webform2's standard.
Regards,
Vikas
I have developed an open source "Generic JavaScript Validator"
https://sourceforge.net/projects/js-validator/ (https://sourceforge.net/projects/js-validator/)
I am using some extra form's element like require="yes|no"
pattern = "^regular expression$"
authtype=_email|_zip|_digits|_date|... and much more
errormsg="User's own error message"
Code generator is also designed by me... which generates some code like this...
<input type="text" name="email" required="yes" authtype="_email" errormsg="Please Enter Proper Email" />
Here ...
My validator traverse DOM (any number's of forms) & doing following...
require="yes" => dont allow field empty
authtype="_email" => Match entered email with standard pattern /^[\w]+(\.[\w]+)*@([\w\-]+\.)+[a-zA-Z]{2,7}$/
errormsg="Please Enter Proper Email" it will alert, the msg "Please Enter Proper Email"
I need suggestions, releted to web forms 2
"http://www.w3.org/TR/2006/WD-web-forms-2-20060821/"
According to Web form 2 standards it also uses pattern,require etc attributes of form's elements... So, what are the chances of acceptation of Web forms 2 by I.E. & Firefox in recent future...? So, that i can make my script compitible with webform2's standard.
Regards,
Vikas