Good news :) I just had a fiddle and its so easy you wouldn't believe
(absolutely should be a feature request!). The
YAHOO.widget.AutoComplete object, on which the cfautocomplete is based on, has
a 'delimChar' property which you can set much in the same way as you would
the delimeters of a list loop, etc. Doing so makes it work exactly as you
want!
I'm not sure of the best way to go about making use of this but I got a
quick example going by copying the HTML output of a simple cfform with an
autocomplete and modifying the javascript to do with the autocomplete. Then
I just ran that flat HTML.
Here's the bit I modified:
var _cf_autosuggest_init_1207175284282=function()
{
var _cf_autosuggestarray=[];
var _cf_autosuggestdatasource= new YAHOO.widget.DS_JSArray(
_cf_autosuggestarray);
var _cf_autosuggest= new YAHOO.widget.AutoComplete( 'foo','foocontainer'
,_cf_autosuggestdatasource);
_cf_autosuggest.onbinderror=null;
_cf_autosuggest.prehighlightClassName = "yui-ac-prehighlight";
_cf_autosuggest.typeAhead = false;
_cf_autosuggest.maxResultsDisplayed = 10;
_cf_autosuggest.useShadow = true;
_cf_autosuggest.showloadingicon = true;
_cf_autosuggest.containerCollapseEvent.subscribe(ColdFusion.Autosuggest.
triggerOnChange);
_cf_autosuggest.id='foo';
_cf_autosuggest.valuePresent=false;
_cf_autosuggest.doBeforeExpandContainer=_cf_resetLoadingIcon_1207175284283;
<!--- HERE IT IS: --->
_cf_autosuggest.delimChar=';';
....
I'll carry on working on something that is more reusable, etc. but maybe you
can figure something with that.
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:302550
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4