Would it look like this?

<cfoutput>
        <script type="text/javascript">
                var scriptList = '#myList#';
                
                
                $(document).ready(function() {
                        $("##country").autocomplete(
                                "data/country.cfm",
                                {
                                        minChars:2,
                                        delay:200,
                                        autoFill:false,
                                        matchSubset:false,
                                        matchContains:1,
                                        cacheLength:10,
                                        selectOnly:1
                                }
                        );
                        $("##city").autocompleteArray(
                                scriptList,
                                {
                                        minChars:1,
                                        delay:10,
                                        autoFill:false,
                                        matchSubset:10,
                                        matchContains:10,
                                        selectOnly:10
                                }
                        );
                });
        </script>
        </cfoutput>




> Have you tried to dump the value of the list to see if it matches the 
> format of the list in the jquery script?
> You also may wanna try to put the list in a script var and use it :
> 
> 
> <script type="text/javascript">
> var scriptList = <cfoutput>'#myCFgeneratedlist#'</cfoutput>;
> 
> >               $(document).ready(function() {
> > >                       $("#country").autocomplete(
> > >                               "data/country.cfm",
> > >                               {
> > >                                       minChars:2,
> > >                                       delay:200,
> > >                                       autoFill:false,
> > >                                       matchSubset:false,
> > >                                       matchContains:1,
> > >                                       cacheLength:10,
> > >                                       selectOnly:1
> > >                               }
> > >                       );
> > >                       $("#city").autocompleteArray(scriptList),
> > >                               {
> > >                                       minChars:1,
> > >                                       delay:10,
> > >                                       autoFill:true,
> > >                                       matchSubset:1,
> > >                                       matchContains:1,
> > >                                       selectOnly:1
> > >                               }
> > >                       );
> > >               });
> > >       </script>
> 
> > >   
> 
> 
                            
> 
> 
> 
> >Thanks
> >
> >The list creation does exactly what I need it to but the <cfoutput... 
> does work. 
> >
> >It's not giving an error but the autocomplete does nothing. 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:322887
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