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 myself as of yet. Or if this will help you at all for
that matter ;o) Just thought I would throw it out there...

G!


On Fri, May 15, 2009 at 10:43 AM, Les Mizzell <lesm...@bellsouth.net> wrote:

>
> Hmmm - don't know why this doesn't want to work:
>
> <cfselect name="theCATS"
>           id="theCATS"
>           bind="cfc:art.getCATS()"
>           bindonload="yes"
>           bindattribute="HTML"
>           queryPosition="Below">
>      <option value="0">Select a Category</option>
>   </cfselect>
>
> This will display *just* the database output, and not the optional
> "Select a Category" option, which needs to always be first...
>
> If I remove the "bindonload" attribute - it will display ONLY the
> "Select a Category" option - and not the database output.
>
> I'm probably an idiot....
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322555
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to