RE: cfselect required='yes' is useless....

2001-04-06 Thread Semrau, Steven L Mr SRA

Anytime, glad I could provide a little help.

Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com:  (703) 805-1095
DSN:  (703) 655-1095


-Original Message-
From: Jeremy Castonguay [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 12:26 PM
To: CF-Talk
Subject: RE: cfselect required='yes' is useless


Thats the ticket, thanks for the code...

-Original Message-
From: Semrau, Steven L Mr SRA
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 9:38 AM
To: CF-Talk
Subject: RE: cfselect required='yes' is useless






I use the above example all the time for the scenario you described below.

Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com:  (703) 805-1095
DSN:  (703) 655-1095


-Original Message-
From: Jeremy Castonguay [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 9:23 AM
To: CF-Talk
Subject: cfselect required='yes' is useless




What were they thinking.  Pardon me if I am just being ignorant but the
"Required='yes'" attribute is completely useless.  When the query values are
inserted there is no way to default the select box to null, therefore there
is no way to "not" select a value...

Any thoughts would be appreciated.

Thanks
Jeremy Castonguay
Sr. Web Developer
eCopy Inc.
~~
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 required='yes' is useless....

2001-04-06 Thread Jeremy Castonguay

Thats the ticket, thanks for the code...

-Original Message-
From: Semrau, Steven L Mr SRA
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 9:38 AM
To: CF-Talk
Subject: RE: cfselect required='yes' is useless






I use the above example all the time for the scenario you described below.

Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com:  (703) 805-1095
DSN:  (703) 655-1095


-Original Message-
From: Jeremy Castonguay [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 9:23 AM
To: CF-Talk
Subject: cfselect required='yes' is useless




What were they thinking.  Pardon me if I am just being ignorant but the
"Required='yes'" attribute is completely useless.  When the query values are
inserted there is no way to default the select box to null, therefore there
is no way to "not" select a value...

Any thoughts would be appreciated.

Thanks
Jeremy Castonguay
Sr. Web Developer
eCopy Inc.
~~
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 required='yes' is useless....

2001-04-06 Thread David E. Crawford

The issue is that the idea is to force a selection, ie: an entry that has a
value. Most of us use a "blank" option to start with as you show.
Unfortunately the cfselect produced javascript does not properly handle this
issue.  In a single select box something is always selected.

Dave

- Original Message -
From: "Semrau, Steven L Mr SRA" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 09:38
Subject: RE: cfselect required='yes' is useless


> 
> 
> 
>
> I use the above example all the time for the scenario you described below.
>
> Steven Semrau
> SRA International, Inc.
> Senior Member, Professional Staff
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> Com:  (703) 805-1095
> DSN:  (703) 655-1095
>
>
> -Original Message-
> From: Jeremy Castonguay [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 9:23 AM
> To: CF-Talk
> Subject: cfselect required='yes' is useless
>
>
> 
>
> What were they thinking.  Pardon me if I am just being ignorant but the
> "Required='yes'" attribute is completely useless.  When the query values
are
> inserted there is no way to default the select box to null, therefore
there
> is no way to "not" select a value...
>
> Any thoughts would be appreciated.
>
> Thanks
> Jeremy Castonguay
> Sr. Web Developer
> eCopy Inc.
>
~~
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 required='yes' is useless....

2001-04-06 Thread Edward Smith

It's only useless on a select box with a size of 1.  On a select box
with a size greater then 1, it works fine, and is useful.

What you could do, is crib the CFSELECT validation Javascript, add in
your own code for Single Size Selects, and hook it up to the CFFORM
validation routine, and just use a SELECT and loop over your OPTIONS
instead of using a CFSELECT.

Jeremy Castonguay wrote:
> 
> 
> 
> What were they thinking.  Pardon me if I am just being ignorant but the
> "Required='yes'" attribute is completely useless.  When the query values are
> inserted there is no way to default the select box to null, therefore there
> is no way to "not" select a value...
> 
> Any thoughts would be appreciated.
> 
> Thanks
> Jeremy Castonguay
> Sr. Web Developer
> eCopy Inc.
> 
>
~~
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 required='yes' is useless....

2001-04-06 Thread Adkins, Randy

Well no offense, think about what you just stated.

Using the Required="Yes" function means You REQUIRE
a value thus the field will never be NULL.

Thus why would you want a NULL value or NOT Select
an item in the select.

If you want a case where a user does not have to select
a field within the select simply use:  Required="No"

The Required="Yes" allows a JavaScript message to display 
when the USER has not selected anything from that box.

I think it is useful given the situation.




-Original Message-
From: Jeremy Castonguay [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 9:23 AM
To: CF-Talk
Subject: cfselect required='yes' is useless




What were they thinking.  Pardon me if I am just being ignorant but the
"Required='yes'" attribute is completely useless.  When the query values are
inserted there is no way to default the select box to null, therefore there
is no way to "not" select a value...

Any thoughts would be appreciated.

Thanks
Jeremy Castonguay
Sr. Web Developer
eCopy Inc.
~~
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 required='yes' is useless....

2001-04-06 Thread Semrau, Steven L Mr SRA





I use the above example all the time for the scenario you described below.

Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com:  (703) 805-1095
DSN:  (703) 655-1095


-Original Message-
From: Jeremy Castonguay [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 9:23 AM
To: CF-Talk
Subject: cfselect required='yes' is useless




What were they thinking.  Pardon me if I am just being ignorant but the
"Required='yes'" attribute is completely useless.  When the query values are
inserted there is no way to default the select box to null, therefore there
is no way to "not" select a value...

Any thoughts would be appreciated.

Thanks
Jeremy Castonguay
Sr. Web Developer
eCopy Inc.
~~
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 required='yes' is useless....

2001-04-06 Thread David E. Crawford

Write your own javascript to validate the select box. The problem is that
with a "single" select box there is always something selected. Using a
multi-select box, the validation in CFFORM works just fine.  You used to be
able to modify the javascript that CFFORM used, but that changed with 4.0x.

DC

- Original Message -
From: "Jeremy Castonguay" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 09:23
Subject: cfselect required='yes' is useless


> 
>
> What were they thinking.  Pardon me if I am just being ignorant but the
> "Required='yes'" attribute is completely useless.  When the query values
are
> inserted there is no way to default the select box to null, therefore
there
> is no way to "not" select a value...
>
> Any thoughts would be appreciated.
>
> Thanks
> Jeremy Castonguay
> Sr. Web Developer
> eCopy Inc.
>
>
~~
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