Re: CFSELECT and Java

2001-01-12 Thread Cami Lawson

thanks, this worked great
- Original Message -
From: "DeVoil, Nick" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 7:23 AM
Subject: RE: CFSELECT and Java


> JavaScript is case-sensitive so you nee "if" not "IF."
> Also BTW the code says do the popoup if all three are different.
>
> I think you want sth like
>
> if ((document.favform.myselectbox1.value ==
> document.favform.myselectbox2.value) ||
>   (document.favform.myselectbox1.value ==
> document.favform.myselectbox3.value) ||
>   (document.favform.myselectbox2.value ==
> document.favform.myselectbox3.value))
> { popup code;
> return false;
>   }
>
> Nick
>
> -Original Message-
> From: Cami Lawson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 1:13 PM
> To: CF-Talk
> Subject: Re: CFSELECT and Java
>
>
> I have three cfselects that I need to compare their values before leaving
> the form for my processor page, I already have a popup message coded to
come
> up if any of the three are the same.  I have tried
>
> IF ((document.favform.myselectbox1.value !=
> document.favform.myselectbox2.value) &&
>   (document.favform.myselectbox1.value !=
> document.favform.myselectbox3.value) &&
>   (document.favform.myselectbox2.value !=
> document.favform.myselectbox3.value))
> { popup code;
> return false;
>   }
>
> I get errors when I put these statements in my javascript for the popup.
It
> acts like it doesn't know what the cfselect values are.
>
>
> **
> Information in this email is confidential and may be privileged.
> It is intended for the addressee only. If you have received it in error,
> please notify the sender immediately and delete it from your system.
> You should not otherwise copy it, retransmit it or use or disclose its
> contents to anyone.
> Thank you for your co-operation.
> **
>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFSELECT and Java

2001-01-12 Thread Jason Lees (National Express)


Have you checked the case-sensativity of the variables. JAVA is case
sensative, also try the IF as if.

Surely you want to use ||'s not &&'s if you are checking that they are all
the same.

 

-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: 12 January 2001 13:13
To: CF-Talk
Subject: Re: CFSELECT and Java


I have three cfselects that I need to compare their values before leaving
the form for my processor page, I already have a popup message coded to come
up if any of the three are the same.  I have tried

IF ((document.favform.myselectbox1.value !=
document.favform.myselectbox2.value) &&
  (document.favform.myselectbox1.value !=
document.favform.myselectbox3.value) &&
  (document.favform.myselectbox2.value !=
document.favform.myselectbox3.value))
{ popup code;
return false;
  }

I get errors when I put these statements in my javascript for the popup.  It
acts like it doesn't know what the cfselect values are.


- Original Message -
From: "Jann VanOver" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 3:38 PM
Subject: RE: CFSELECT and Java


> FYI:
> Java is NOT the same as Javascript
>
> That being said, what kind of compare would you like to do?  Once you
learn
> Javascript, it is an easy thing to check any and all form values before a
> form is submitted, but exactly how to do it depends on what you want to
> compare.
>
> -Original Message-
> From: Cami Lawson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 10, 2001 9:41 AM
> To: CF-Talk
> Subject: CFSELECT and Java
>
>
> Is there a way to check the value of a CFSELECT with a Java script?
>
> I have 3 CFSELECTs on one page and I need to compare them against each
other
> before they go to the CFFORM action.
>
> TIA
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFSELECT and Java

2001-01-12 Thread DeVoil, Nick

JavaScript is case-sensitive so you nee "if" not "IF."
Also BTW the code says do the popoup if all three are different.

I think you want sth like

if ((document.favform.myselectbox1.value ==
document.favform.myselectbox2.value) ||
  (document.favform.myselectbox1.value ==
document.favform.myselectbox3.value) ||
  (document.favform.myselectbox2.value ==
document.favform.myselectbox3.value))
{ popup code;
return false;
  }

Nick

-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 1:13 PM
To: CF-Talk
Subject: Re: CFSELECT and Java


I have three cfselects that I need to compare their values before leaving
the form for my processor page, I already have a popup message coded to come
up if any of the three are the same.  I have tried

IF ((document.favform.myselectbox1.value !=
document.favform.myselectbox2.value) &&
  (document.favform.myselectbox1.value !=
document.favform.myselectbox3.value) &&
  (document.favform.myselectbox2.value !=
document.favform.myselectbox3.value))
{ popup code;
return false;
  }

I get errors when I put these statements in my javascript for the popup.  It
acts like it doesn't know what the cfselect values are.


**
Information in this email is confidential and may be privileged.
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system. 
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone. 
Thank you for your co-operation.
**

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFSELECT and Java

2001-01-12 Thread Cami Lawson

I have three cfselects that I need to compare their values before leaving
the form for my processor page, I already have a popup message coded to come
up if any of the three are the same.  I have tried

IF ((document.favform.myselectbox1.value !=
document.favform.myselectbox2.value) &&
  (document.favform.myselectbox1.value !=
document.favform.myselectbox3.value) &&
  (document.favform.myselectbox2.value !=
document.favform.myselectbox3.value))
{ popup code;
return false;
  }

I get errors when I put these statements in my javascript for the popup.  It
acts like it doesn't know what the cfselect values are.


- Original Message -
From: "Jann VanOver" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 3:38 PM
Subject: RE: CFSELECT and Java


> FYI:
> Java is NOT the same as Javascript
>
> That being said, what kind of compare would you like to do?  Once you
learn
> Javascript, it is an easy thing to check any and all form values before a
> form is submitted, but exactly how to do it depends on what you want to
> compare.
>
> -Original Message-
> From: Cami Lawson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 10, 2001 9:41 AM
> To: CF-Talk
> Subject: CFSELECT and Java
>
>
> Is there a way to check the value of a CFSELECT with a Java script?
>
> I have 3 CFSELECTs on one page and I need to compare them against each
other
> before they go to the CFFORM action.
>
> TIA
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFSELECT and Java

2001-01-11 Thread Jann VanOver

FYI:
Java is NOT the same as Javascript

That being said, what kind of compare would you like to do?  Once you learn
Javascript, it is an easy thing to check any and all form values before a
form is submitted, but exactly how to do it depends on what you want to
compare.

-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 9:41 AM
To: CF-Talk
Subject: CFSELECT and Java


Is there a way to check the value of a CFSELECT with a Java script?

I have 3 CFSELECTs on one page and I need to compare them against each other
before they go to the CFFORM action.

TIA
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists