dsValidator : form validation library

This is a discussion on "dsValidator : form validation library" within the JavaScript Forum section. This forum, and the thread "dsValidator : form validation library are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 22nd, 2004, 12:43
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
dsValidator : form validation library

I originally posted this in the tutorials section (http://www.webforumz.com/topic.asp?TOPIC_ID=1305) but not many of you got to read it so I'll try it here:

<hr noshade size="1">
http://www.primeappliances.com/dsvalidator/

I hate documenting things so there's no such thing as a manual yet. but if you know your stuff and you're feeling adventurous, check it out and let me know what you think.

the basic idea is:
we all know that forms have a collection of controls (that belong to that form).
so I coded all these little validation scripts to check phone numbers, email, addresses, postcode and all sorta things.

then, I added my own attributes to the controls:
<input type=text dsType=Postcode name=postcode id=postcode>
I don't know if this is valid, but it works beautifully so I'm not that bothered... but i'd like to know......

then I added this to my forms:
onsubmit="return ValidateForm(this);"

so that function goes through every control in the form and validates it according to the attributes of every individual element.

and the script is the same for every form and every page, all I change are the attributes....

but of course, I added a whole lotta fancy things to it so you guys gotta go see it for yourselves.


this is only i beta version and I'm interested to know what you guys think of it.

the code is free to use... do whatever you want with it but please leave the copyright message alone....

for the future (after I've had some feedback):
there are a few issues I need to sort out and a few little bits I want to implement later on so if anyone is interested, just let me know.....
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)

  #2 (permalink)  
Old May 24th, 2004, 08:06
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks
  #3 (permalink)  
Old May 24th, 2004, 10:40
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
for what? hehe
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
  #4 (permalink)  
Old May 30th, 2004, 11:10
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
where are you guys?
got nothing to say about this?
where's everyone??????
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Closed Thread

Tags
dsvalidator, form, validation, library

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form validation help! psycho wolvesbane JavaScript Forum 16 Feb 12th, 2008 16:40
Form Validation cjrollo Flash & Multimedia Forum 0 Feb 22nd, 2007 17:33
Form Validation feebee JavaScript Forum 1 Aug 3rd, 2006 16:12
PHP Form Validation. kaz PHP Forum 2 Jul 22nd, 2006 20:47
Form Validation Help gajlehab PHP Forum 7 Dec 13th, 2005 19:40


All times are GMT. The time now is 00:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43