Jake Churchill wrote:
> Except I think you'd loop from="2" because you already set the first value
> manually
Finally figured it out!
~|
Want to reach the ColdFusion community with something they want? Let t
Jake Churchill wrote:
> Except I think you'd loop from="2" because you already set the first value
> manually
Yea - I just noticed that. The way I've got it I never see the first rwo
returned from the database.
Whoops!
~|
Want
Friday, May 15, 2009 10:13 AM
To: cf-talk
Subject: Re: CFSELECT Default Value Problem...
Here's what I had to do to get it to work:
Still, seems convoluted! You should be able to define a default value!!!
Oh wel
Here's what I had to do to get it to work:
Still, seems convoluted! You should be able to define a default value!!!
Oh well, maybe in CF9, huh?
~|
Want to reach the ColdFusion community with something they
IIRC that is par for the course with CFselect. To get around that I have
been using a custom tag called optionselected.cfm for years.
I posted code for the tag here
http://coz.pastebin.com/f18153123
I am not sure how you would do dynamic updates or anything Ajax-y with this
as I have not tried
If it's an either/or issue, then I would rework your CFC to add your
"select a category" option to the data being returned.
I assume you're currently doing a simple query and dumping that query
out - so you may have to rework that a bit. *shrug*
Binding overwrites the entire option array. I'm not sure there's a way to
stop that. What I'd do is just modify your getCATS() method to add the
"Select a Category" option to the data returned.
Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE 68154
http://www.cfwebtools.com
402-4
7 matches
Mail list logo