Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #16  
Old June 12th, 2007, 08:57 PM
hellohoa hellohoa is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 3 hellohoa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 56 sec
Reputation Power: 0
Thanks a bunch Shadow Wizard

Thank you Shadow Wizard! I will look forward to seeing the new version. Not only the script is truly generic, it is also easy and straightforward to use it.

Thank you for posting it and sharing it.

Reply With Quote
  #17  
Old June 13th, 2007, 06:10 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,993 Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 342508 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342508 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342508 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342508 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342508 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342508 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 5 Days 16 h 39 m 38 sec
Reputation Power: 1557
OK, changes are done.
I added support in yet another attribute called "error_container" that define
where you want error message to appear, then in the form HTML you need
to add span with that ID - see the code in TestValidate.html to see what
I mean. (you'll have to copy/download the new version)
also note that all attributes are needed only in the first radio button
or checkbox, not in all of them.
good luck, let me know how it goes.

Reply With Quote
  #18  
Old June 13th, 2007, 09:01 AM
hellohoa hellohoa is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 3 hellohoa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 56 sec
Reputation Power: 0
Thanks

Thank you very much Shadow Wizard. The fix works like a charm.

Reply With Quote
  #19  
Old January 12th, 2008, 02:08 PM
icywave icywave is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Sep 2005
Location: Global Village
Posts: 691 icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Days 22 h 23 m 30 sec
Reputation Power: 31
Send a message via MSN to icywave
Thank you, this saved me a lot of time. But I'd like to ask, what if someone remotely submitted the form to do an attack?... Then I'd still need to do ASP server-side validation?

Reply With Quote
  #20  
Old January 12th, 2008, 05:18 PM
lewy's Avatar
lewy lewy is offline
Alter Ego Wizard
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Edinburg Tx
Posts: 4,376 lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 1009 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 1 Day 21 h 21 m 31 sec
Reputation Power: 1391
Quote:
Originally Posted by icywave
Thank you, this saved me a lot of time. But I'd like to ask, what if someone remotely submitted the form to do an attack?... Then I'd still need to do ASP server-side validation?
Yes you do

You should never rely on js to do validation because users can very
easily disable javascript and there goes your application.

Javascript is only meant to enhance the user experience and save
you a trip to the server but it's always best to do both
__________________
................... ASCII and ye shall receive ..................
Knowledge is the only resource on earth that multiplies when shared


Support the Shemzilla Project
Powered by C#

Reply With Quote
  #21  
Old January 12th, 2008, 07:09 PM
icywave icywave is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Sep 2005
Location: Global Village
Posts: 691 icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Days 22 h 23 m 30 sec
Reputation Power: 31
Send a message via MSN to icywave
Hmmm for me the page validates all right, but the error message doesnt show up beside the form that has an error. The cursor is blinking inside the form but the error message doesnt show up. I have given a value to msg="Error". What may I be doing wrong?

Problem Fixed. There must be a space after the input tag before you put other tags.

Last edited by icywave : January 12th, 2008 at 07:15 PM.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Javascript - Generic form validation


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway