Tech Support Guy banner
Status
Not open for further replies.

please! help !

1K views 10 replies 2 participants last post by  staso 
#1 ·
#2 ·
I'm having trouble submitting because it doesn't like my "Wish to meet" selections. I think your problem is here:
HTML:
if(!customer_preferences_selected){
	alert('Whom you wish to find?');
		return false;		
	}
I believe it should say:
HTML:
if(!customer_preferences){
	alert('Whom you wish to find?');
		return false;		
	}
OR
HTML:
if(!customer_preferences.selected){
	alert('Whom you wish to find?');
		return false;		
	}
Try it out.
 
#3 ·
yes, it is working!!! thanks!!! you fixed the problem and the problem num.2 too ! :):D:D:D

but now, there is another one- the idea is, that the user must specify his
preference (Wish to meet)...and after i have fixed this bug, the user is continuing to next page, without the requirement or error , of "Whom you wish to find?".....:(
could you check it again?
Thank you :D
 
#4 ·
You should name the selections. Something like this would be good:
HTML:
Man 
Woman 
Couple
After that your javascript should be more like:

Code:
if(customer_preferences.man.checked=false && customer_preferences.woman.checked=false && customer_preferences.couple.checked=false){
	alert('Whom you wish to find?');
		return false;		
	}
 
#9 ·
I'm actually not sure what most of your Javascript is doing. I'm either not familiar with your style of scripting or it shouldn't look like that.

For example... The code below. I have absolutely no idea what that code does. Did you write this yourself?

Code:
var i;
	var customer_preferences_selected = false;
	for(i=0; i<inForm.customer_preferences.length; i++){
		customer_preferences_selected = customer_preferences_selected || inForm.customer_preferences[i].status;
	}
 
Status
Not open for further replies.
You have insufficient privileges to reply here.
Top