Force/Trigger Ajax refresh on each keystroke
I am designing a user-filtered list using Ajax. I have two components on the form: cfinput and cfselect. I need the cfselect to refresh with each keystroke the user types in the cfinput, but the Ajax bind doesn't trigger until the cfinput loses focus. How can I cause the cfselect to refresh on each keystroke? I can get it to work with a cfgrid by calling ColdFusion.Grid.refresh() in the cfinput's onKeyUp event, but I need to use a cfselect, not a cfgrid. Thank you for your help! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333545 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Force/Trigger Ajax refresh on each keystroke
in cfselect's bind attribute add the event you want the binding to react to: bind=cfc:.({your-cfinput-n...@keyup) Azadi On 10/05/2010 23:07, Alan McKeen wrote: I am designing a user-filtered list using Ajax. I have two components on the form: cfinput and cfselect. I need the cfselect to refresh with each keystroke the user types in the cfinput, but the Ajax bind doesn't trigger until the cfinput loses focus. How can I cause the cfselect to refresh on each keystroke? I can get it to work with a cfgrid by calling ColdFusion.Grid.refresh() in the cfinput's onKeyUp event, but I need to use a cfselect, not a cfgrid. Thank you for your help! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333548 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Force/Trigger Ajax refresh on each keystroke
That was exactly what I needed. Thank you! in cfselect's bind attribute add the event you want the binding to react to: bind=cfc:.({your-cfinput-n...@keyup) Azadi On 10/05/2010 23:07, Alan McKeen wrote: I am designing a user-filtered list using Ajax. I have two components on the form: cfinput and cfselect. I need the cfselect to refresh with each keystroke the user types in the cfinput, but the Ajax bind doesn't trigger until the cfinput loses focus. How can I cause the cfselect to refresh on each keystroke? I can get it to work with a cfgrid by calling ColdFusion.Grid.refresh() in the cfinput's onKeyUp event, but I need to use a cfselect, not a cfgrid. Thank you for your help! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333556 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Force/Trigger Ajax refresh on each keystroke
That was exactly what I needed. Thank you! in cfselect's bind attribute add the event you want the binding to react to: bind=cfc:.({your-cfinput-n...@keyup) Azadi On 10/05/2010 23:07, Alan McKeen wrote: I am designing a user-filtered list using Ajax. I have two components on the form: cfinput and cfselect. I need the cfselect to refresh with each keystroke the user types in the cfinput, but the Ajax bind doesn't trigger until the cfinput loses focus. How can I cause the cfselect to refresh on each keystroke? I can get it to work with a cfgrid by calling ColdFusion.Grid.refresh() in the cfinput's onKeyUp event, but I need to use a cfselect, not a cfgrid. Thank you for your help! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333557 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm