Re: CF8 Autosuggest doesn't work
About 5 minutes ago I helped someone with an Ajax issue and Firebug solved it in 20 seconds. (Technically not Firebug but the dev tools in Chrome.) Folks - PLEASE - if are you having _any_ Ajax issues, you must take the time to learn how to use a network tool like Firebug and see what's going on behind the scenes. http://insideria.com/2009/06/quick-video-example-of-firebug.html On Fri, Nov 19, 2010 at 9:21 PM, Tony Bentley cascadefreehee...@gmail.com wrote: Firebug? Are you getting an ajax response? If so, what does the output look like? Is it a JSON array? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339428 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Autosuggest doesn't work
Ditto what Ray said, I had a guy spent all day trying to debug an ajax issue, I solved it in 5 minutes with firebug -- Russ Michaels www.cfmldeveloper.com - Supporting the CF community since 1999 FREE ColdFusion/Railo hosting for developers. blog: www.michaels.me.uk ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339429 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Autosuggest doesn't work
Use jquery I'll second this. I use jQuery autocomplete and it works great. J - No man's life, liberty, or property is safe while the legislature is in session. - Mark Twain The artificial aristocracy is a mischievous ingredient in government, and provisions should be made to prevent its ascendancy. - Thomas Jefferson On Fri, Nov 19, 2010 at 10:22 PM, Daniel Baughman dan.baugh...@gmail.comwrote: Use jquery Sent from my mobile device On Nov 19, 2010, at 7:46 PM, Richard Steele r...@photoeye.com wrote: Hi, Need some help on this one. I couldn't get Ben Forta's autosuggest example to work. I had to make a virtual directory in IIS to the CFIDE folder in order for the button animation to work. But the icon just sits there and rotates. Nothing is suggested. I know that the cfartgallery is returning records. What am I missing? input_test.cfm cfform Art: cfinput type=text name=artname autosuggest=cfc:autosuggest.lookupArt({cfautosuggestvalue}) /cfform autosuggest.cfc cfcomponent output=false cfset THIS.dsn=cfartgallery !--- Lookup used for auto suggest --- cffunction name=lookupArt access=remote returntype=array cfargument name=search type=any required=false default= !--- Define variables --- cfset var data= cfset var result=ArrayNew(1) !--- Do search --- cfquery datasource=#THIS.dsn# name=data SELECT artname FROM art WHERE UCase(artname) LIKE Ucase('#ARGUMENTS.search#%') ORDER BY artname /cfquery !--- Build result array --- cfloop query=data cfset ArrayAppend(result, artname) /cfloop !--- And return it --- cfreturn result /cffunction /cfcomponent ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339413 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Autosuggest doesn't work
Are either of you using a jquery autosuggest plug-in? If so, which one? How scalable is this? I'd like for it to work like Google's autosuggest and have several thousand keywords in a db table to match against. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339415 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Autosuggest doesn't work
Are either of you using a jquery autosuggest plug-in? If so, which one? How scalable is this? I'd like for it to work like Google's autosuggest and have several thousand keywords in a db table to match against. Thanks. The jQueryUI autosuggest works very well. Also this blog posting steps you through it: http://www.jensbits.com/2010/03/18/jquery-ui-autocomplete-with-coldfusion/ hth, larry ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339416 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Autosuggest doesn't work
Are either of you using a jquery autosuggest plug-in? If so, which one? How scalable is this? I'd like for it to work like Google's autosuggest and have several thousand keywords in a db table to match against. Thanks. The jQueryUI autosuggest works very well. Also this blog posting steps you through it: http://www.jensbits.com/2010/03/18/jquery-ui-autocomplete-with-coldfusion/ hth, larry I forgot to mention that Ray Camden has a very good jQueryUI autosuggest blog posting http://www.coldfusionjedi.com/index.cfm/2010/4/12/Playing-with-jQuery-UIs-Autocomplete-Control ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339417 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF8 Autosuggest doesn't work
Hi, Need some help on this one. I couldn't get Ben Forta's autosuggest example to work. I had to make a virtual directory in IIS to the CFIDE folder in order for the button animation to work. But the icon just sits there and rotates. Nothing is suggested. I know that the cfartgallery is returning records. What am I missing? input_test.cfm cfform Art: cfinput type=text name=artname autosuggest=cfc:autosuggest.lookupArt({cfautosuggestvalue}) /cfform autosuggest.cfc cfcomponent output=false cfset THIS.dsn=cfartgallery !--- Lookup used for auto suggest --- cffunction name=lookupArt access=remote returntype=array cfargument name=search type=any required=false default= !--- Define variables --- cfset var data= cfset var result=ArrayNew(1) !--- Do search --- cfquery datasource=#THIS.dsn# name=data SELECT artname FROM art WHERE UCase(artname) LIKE Ucase('#ARGUMENTS.search#%') ORDER BY artname /cfquery !--- Build result array --- cfloop query=data cfset ArrayAppend(result, artname) /cfloop !--- And return it --- cfreturn result /cffunction /cfcomponent ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339405 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Autosuggest doesn't work
Firebug? Are you getting an ajax response? If so, what does the output look like? Is it a JSON array? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339406 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Autosuggest doesn't work
Use jquery Sent from my mobile device On Nov 19, 2010, at 7:46 PM, Richard Steele r...@photoeye.com wrote: Hi, Need some help on this one. I couldn't get Ben Forta's autosuggest example to work. I had to make a virtual directory in IIS to the CFIDE folder in order for the button animation to work. But the icon just sits there and rotates. Nothing is suggested. I know that the cfartgallery is returning records. What am I missing? input_test.cfm cfform Art: cfinput type=text name=artname autosuggest=cfc:autosuggest.lookupArt({cfautosuggestvalue}) /cfform autosuggest.cfc cfcomponent output=false cfset THIS.dsn=cfartgallery !--- Lookup used for auto suggest --- cffunction name=lookupArt access=remote returntype=array cfargument name=search type=any required=false default= !--- Define variables --- cfset var data= cfset var result=ArrayNew(1) !--- Do search --- cfquery datasource=#THIS.dsn# name=data SELECT artname FROM art WHERE UCase(artname) LIKE Ucase('#ARGUMENTS.search#%') ORDER BY artname /cfquery !--- Build result array --- cfloop query=data cfset ArrayAppend(result, artname) /cfloop !--- And return it --- cfreturn result /cffunction /cfcomponent ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339407 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm