Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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.

Cheers,
Jonsey





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





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