GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   35$ Paypal for help with a j-a-v-a-s-c-r-i-p-t (https://gfy.com/showthread.php?t=266813)

pornguy 04-09-2004 07:09 AM

35$ Paypal for help with a j-a-v-a-s-c-r-i-p-t
 
Need some help adding another validation to this script.
It already validates the top two forms, but it also needs to validate that at least 1 of the check box's has been checked.

http://www.gainesvillewebs.com/czari..._results-2.htm


Thanks in advance.

Naughty 04-09-2004 07:16 AM

I can do everything

pornguy 04-09-2004 07:20 AM

Ok. It has to give the alret just like the two forms above the check boxes.

pornguy 04-09-2004 07:24 AM

Do you want me to mail you the js file???


This script works great, but we need to add in the check box thing.

pornguy 04-09-2004 09:31 AM

Bump, I guess I am still looking for help.

benthompson 04-09-2004 09:42 AM

ICQ: 45147309
contact me

pornguy 04-09-2004 09:53 AM

Quote:

Originally posted by benthompson
ICQ: 45147309
contact me


trying to get you now...

chrisp420 04-09-2004 10:11 AM

icq below if you still need help.

Basic_man 04-09-2004 10:14 AM

I wish I had some photoshop skillz! :Graucho :thumbsup

spentrent 04-09-2004 10:32 AM

Yo I will STOP BY if you are in Gville... my charge is 8 ounces of sirloin and a couple of beers.

;)

Coyote 04-09-2004 11:10 AM

In your test of form document.forms['itinsearch'], the checkboxes are type "select-one" and will be in a zero-indexed array. You can loop through the array length to check whether any are selected and return the error as needed.

On a side note, it is good practice to always have a default value selected. Especially in this instance, where it is not possible to place an error message next to the offending field, because you will have no idea which field the user intends to select. So, force the user to change from the default selection.

Coyote 04-09-2004 11:19 AM

Hmmm... Time expired to edit the post. :/

The type is not 'select-one'. That applies to comboboxes.

The type attribute will return 'radio'. You should test for 'checked' state.

btw, happy easter...

http://www.undeadclan.com/images/HappyEaster.jpg


All times are GMT -7. The time now is 07:54 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123