To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Other Languages > XML, HTML, Javascript, Web and CSS

Reply Post New Thread
 
Thread Tools Display Modes
Old May 16th, 2007, 04:09 AM   #1
twinkie
Member
 
Join Date: Jul 06
Posts: 58
twinkie is an unknown quantity at this point (<10)
validate accept terms and conditions

how do you validate terms and conditions?
twinkie is offline   Reply With Quote
Old May 16th, 2007, 07:09 AM   #2
penagate
Super Moderator
 
Join Date: Jan 05
Location: Sunny Adelaide
Posts: 12,738
penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)penagate has much to be proud of (1500+)
Re: validate accept terms and conditions

You'll have to be a little more specific - what do you need to validate about them?
penagate is offline   Reply With Quote
Old May 16th, 2007, 09:09 PM   #3
twinkie
Member
 
Join Date: Jul 06
Posts: 58
twinkie is an unknown quantity at this point (<10)
Re: validate accept terms and conditions

the user have to accept the terms n conditions before he can proceed to the next page. if he click on "i disagree"-it is in radiobutton, there will be a pop up error message that say "u will have to accept the terms n conditions". then if he click onto "i agree", he will then be proceeded to the next page.

this is the code
<input name="agree" type="radio" value="i agree" />
I Agree </label>
<label>
<input name="disagree" type="radio" value="i disagree" />
I Do Not Agree</label>

i would like to validate these two radio buttons using javascript, but i dunno how to. can someone tell me how to go abt solving this?
twinkie is offline   Reply With Quote
Old May 16th, 2007, 09:22 PM   #4
twinkie
Member
 
Join Date: Jul 06
Posts: 58
twinkie is an unknown quantity at this point (<10)
Re: validate accept terms and conditions

the user have to accept the terms n conditions before he can proceed to the next page. if he click on "i disagree"-it is in radiobutton, there will be a pop up error message that say "u will have to accept the terms n conditions". then if he click onto "i agree", he will then be proceeded to the next page.

this is the code
<input name="agree" type="radio" value="i agree" />
I Agree </label>
<label>
<input name="disagree" type="radio" value="i disagree" />
I Do Not Agree</label>

i would like to validate these two radio buttons using javascript, but i dunno how to. can someone tell me how to go abt solving this?
twinkie is offline   Reply With Quote
Old May 16th, 2007, 10:17 PM   #5
kfcSmitty
Frenzied Member
 
kfcSmitty's Avatar
 
Join Date: May 05
Location: Kingston, Ontario
Posts: 1,606
kfcSmitty is a jewel in the rough (200+)kfcSmitty is a jewel in the rough (200+)kfcSmitty is a jewel in the rough (200+)
Re: validate accept terms and conditions

I suggest you search www.w3schools.com before asking questions here. It will result in a much faster answer.

http://www.w3schools.com/js/tryit.as...yjs_form_radio

That link has what you need.
__________________
Tidbits

Remember to use [highlight=language][/highlight] tags where applicable. E.g) [highlight=vb][/highlight]

If someone helped you, please don't forget to rate () their post!
kfcSmitty is offline   Reply With Quote
Old May 18th, 2007, 01:28 PM   #6
vbbit
Frenzied Member
 
Join Date: Jun 05
Posts: 1,045
vbbit is on a distinguished road (20+)
Re: validate accept terms and conditions

Treat the radio button just like the gender issue that you asked in another threat here.
vbbit is offline   Reply With Quote
Old May 21st, 2007, 07:42 PM   #7
rnd me
Hyperactive Member
 
Join Date: Jun 06
Posts: 372
rnd me is on a distinguished road (20+)
Re: validate accept terms and conditions

if this is something that is important, it is imperative that you do not rely upon client-side scripting to validate anything.
it is ok as a convienance to the user, but don't think a client script alone will me from going to the next page.
rnd me is offline   Reply With Quote
Reply

Go Back   VBForums > Other Languages > XML, HTML, Javascript, Web and CSS


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:36 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.