Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validating forms

 
Yugendra Reddy Guvvala
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wnat to validate my form and report if the required fields are not answered or in wrong format so please any one tell me how to report the errors in the same page without writing a new page for that i dont want a popup alert window i want to list on the top of teh page all the fields that were wrong?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the validation checks happening on the client or server?
 
Yugendra Reddy Guvvala
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
client side validation
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are also validating on the server once the form gets submitted, correct?

With regards to the client-side validation, you don't need to pop up anything, just set aside a <div> element to receive error messages and add them as necessary when the validation takes place. You can either use the DOM API to add the necessary elements, or brute force it with innerHTML.
 
Yugendra Reddy Guvvala
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanku it worked
 
Yugendra Reddy Guvvala
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to validate a SSN number phonenumber and date in the form
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Yugendra Reddy Guvvala:
how to validate a SSN number phonenumber and date in the form
What have you coded so far?
 
Yugendra Reddy Guvvala
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just checked wether the client have entered all the data into required field or not and now am validating teh entered data so i want to know how to check for SSN DATE PHONE NUMBER AND All
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you familiar with regular expressions?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic