One more, slighly strange suggestion, is to add the option value to the CF
query object using the query manipulation functions (queryAddRow, etc). Then
just use the adjusted query in CFSELECT. A little work on this approach
let's you position the default at the beginning if that's a requirement.
Probably more of a "stupid CF trick" since simply adding the HTML <option>
works just fine :)

Regards,

John Paul Ashenfelter
CTO/Transitionpoint
[EMAIL PROTECTED]
----- Original Message -----
From: "Luis Lebron" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 12:24 PM
Subject: RE: Adding All to cfselect


> In my case I added
>
> <OPTION VALUE="All" select>All
>
>
> to make it the default option.
>
> thanks,
>
> Luis
>
> -----Original Message-----
> From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 09, 2003 10:00 AM
> To: CF-Talk
> Subject: RE: Adding All to cfselect
>
>
> You can manually include any options you want between the start and end
tags
> as in:
>
> <CFSELECT ... >
> <OPTION VALUE="All">All
> </CFSELECT>
>
> Unfortunately, these manually added options will only appear at the bottom
> of the list.
>
> Alternatively, you can use JavaScript to add items to the list once the
code
> is received by the client.  However, not all browsers... blah blah blah.
>
> --
> Mosh Teitelbaum
> evoch, LLC
> Tel: (301) 625-9191
> Fax: (301) 933-3651
> Email: [EMAIL PROTECTED]
> WWW: http://www.evoch.com/
>
>
> > -----Original Message-----
> > From: Luis Lebron [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 09, 2003 10:43 AM
> > To: CF-Talk
> > Subject: Adding All to cfselect
> >
> >
> > I want to use cfselect to dynamically generate select boxes,
> > however I also
> > need to have an "All" option as part of the select. Is there any
> > easy way to
> > do this other than adding "All" to the database field?
> >
> >
> > thanks,
> >
> > Luis R. Lebron
> > Project Manager
> > Sigmatech, Inc
> >
> >
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to