I just tried doing the first part (getting an autosuggest list based on the
last item in a list) and it seems even that is not possible. ColdFusion
doesn't trust that the array you return contains matches according to its
simple search rule (beginning of the string = beginning of the match) and
removes items from the autosuggest array that don't match the rule!

Dominic


On 02/04/2008, Steve Good <[EMAIL PROTECTED]> wrote:
>
> Thanks Dom,
>
> I'm binding to a cfc already, that isn't a problem.  What I'm hoping to do
> is the same thing google does with gmail.  You start typing an address and
> the autosuggest drops down addresses from your address book, you select
> one,
> then start typing to find another one and the autosuggest starts returning
> addresses based on what you started typing after the last address was
> selected.  This is all done in a single input field.  I'm hoping that I
> can
> avoid needing to write out a custom AJAX function to accomplish this since
> it is being added onto a seldom used tool that we aren't really wanting to
> spend a whole lot of time on.
>
> Thanks!
>
> ~Steve
> http://goodcf.instantspot.com/
>
> -----Original Message-----
> From: Dominic Watson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2008 1:43 PM
> To: CF-Talk
> Subject: Re: autosuggest
>
> You can get the autosuggest to give you a list of emails based on the last
> entered text in a list by binding the autosuggest to a cfc or url. See the
> 'Using autosuggest text input fields' near the bottom of this page:
>
>
> http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxui_7.h
> tml
>
> However, I think the CF implementation of the autosuggest will force that
> a
> single email picked from the autosuggest list will overwrite whatever is
> in
> the text box. I think you would need to write some custom javascript to
> get
> it to overwrite only the last item in a list but someone should be able to
> help you with that if its the case (I'd be interested to see it!)
>
> HTH
>
> Dominic
>
> --
> Blog it up: http://fusion.dominicwatson.co.uk
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302549
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to