Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 25th, 2007, 08:14 AM
Authorized User
Join Date: Jan 2007
Location: , , USA.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jonsey Send a message via Yahoo to jonsey
Default Form Validation Help

Ok, where is what I'm trying to do. I have a classic ASP form that pulling in an XML document with a list of question on it. Each question is a Yes/No radio button. If No is checked then a TextArea will appear next to the question. What I looking for is a validation method to check all the "NO" Replies and if "NO" is checked[1] then it would validate the Textarea for that question for a alpha 5 char entry. I have search the web and found alot of information on this subject. But here is the twist to it, most examples are knowning what the check boxes names are. In this case the XML is generated by the End-use/Admin so question numbers can very. So what I have done is group the question by group and then by count. So radio Yes/No will always have the name value of Answer_GroupNumber_QuestionNumber ie Answer_0_0 for group 0 and question 0 and for Comments if would be Comment_GroupNumber_QuestionNumber which will give it the same Comment_0_0 for the first comment. What I'm guessing is that I will have to do a getElementsByID and do a split name for both the radio buttons and the textarea. but kind of unclear about doing split names in javascript. Any information would be greatly helpfull.


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standalone validation + web form validation morbo Struts 0 August 19th, 2008 04:02 AM
Form Validation Stanny Access VBA 5 December 20th, 2005 08:13 PM
Validation of Form qazi_nomi Javascript 5 August 2nd, 2004 03:49 PM
Form not refreshing after form validation Mimi Javascript How-To 0 August 25th, 2003 03:20 AM

All times are GMT -4. The time now is 09:58 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.